<!doctype html>
<html lang="ru" data-bs-theme="dark">

<head>
    <!-- 2024-05-11 14:15:10 -->
        <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <title>git maintenance</title>
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/css/bootstrap.min.css" integrity="sha512-jnSuA4Ss2PkkikSOLtYs8BlYIeeIK1h99ty4YfvRPAlzr377vr3CXDb7sb7eEEBYjDtcYj+AjBH3FLv5uSJuXg==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap-icons/1.11.3/font/bootstrap-icons.min.css" integrity="sha512-dPXYcDub/aeb08c63jRq/k6GaKccl256JQy/AnOq7CAnEZ9FzSL9wSbcZkMp4R26vBsMLFYH4kQ67/bbV8XaCQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/github-dark.min.css" integrity="sha512-rO+olRTkcf304DQBxSWxln8JXCzTHlKnIdnMUwYvQa9/Jd4cQaNkItIUj6Z4nvW1dqK0SKXLbn9h4KwZTNtAyw==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/flag-icon-css/7.1.0/css/flag-icons.min.css" integrity="sha512-bZBu2H0+FGFz/stDN/L0k8J0G8qVsAL0ht1qg5kTwtAheiXwiRKyCq1frwfbSFSJN3jooR5kauE0YjtPzhZtJQ==" crossorigin="anonymous" referrerpolicy="no-referrer" />
    <link href="../../../runebook.css" rel="stylesheet" type="text/css">
    <meta name="x-github" content="https://github.com/runebookdev/runebook">
            <meta name="x-i18n-doc" content="git">
        <script>
        function i18n(element) {
            // NOP
        }
    </script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/js-cookie/3.0.5/js.cookie.js" integrity="sha512-F/dia2jKME12jwqiYDayeD+Rr/8jTWUD2wfbuJB0bzSwenSEnXsn4qQ/wVyXUCix5bmCAj8xJdtFr2OqUtjLAw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.3/js/bootstrap.bundle.min.js" integrity="sha512-7Pi/otdlbbCR+LnW+F7PwFcSDJOuUJB3OxtEHbg4vSMvzvJjde4Po1v4BR9Gdc9aXNUNFVUY+SK51wWT8WF0Gg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/rxjs/7.8.1/rxjs.umd.min.js" integrity="sha512-D9LDs8YUUVa4V9Gl4Zb+xqRAc7RCzooR3+zzebgK2RMu/KU+dh90pbjEEMzPiSyRSGbSp9j1pZnrO4joGa5WEg==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity="sha512-mhbv5DqBMgrWL+32MmsDOt/OAvqr/cHimk6B8y/bx/xS88MVkYGPiVv2ixKVrkywF2qHplNRUvFsAHUdxZ3Krg==" crossorigin="anonymous"></script>
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6424571640879890" crossorigin="anonymous"></script>    <script async src="https://www.googletagmanager.com/gtag/js?id=G-3G5BZ1QEDP"></script>
<script>
    window.dataLayer = window.dataLayer || [];

    function gtag() {
        dataLayer.push(arguments);
    }

    gtag('js', new Date());
    gtag('config', 'G-3G5BZ1QEDP');
</script>    <script>
(function(c, l, a, r, i, t, y) {
    c[a] = c[a] || function() {
        (c[a].q = c[a].q || []).push(arguments)
    };
    t = l.createElement(r);
    t.async = 1;
    t.src = "https://www.clarity.ms/tag/" + i + "?ref=bwt";
    y = l.getElementsByTagName(r)[0];
    y.parentNode.insertBefore(t, y);
})(window, document, "clarity", "script", "jto2hd94r9");
</script>    <script src="../../../theme.js"></script>
</head>

<body>
    <header class="bg-black">
        <div class="container">
            <div class="row">
                <div class="col">
                    <nav class="navbar navbar-expand-lg navbar-dark">
                        <a class="navbar-brand fw-bold" href="https://runebook.dev/ru">
                            <img alt="Runebook.dev" class="d-inline-block align-top mr-1" src="../../../assets/runebook_logo.webp" width="24" height="24">
                            Runebook.dev
                        </a>
                        <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
                            <span class="navbar-toggler-icon"></span>
                        </button>
                        <div class="collapse navbar-collapse" id="navbarSupportedContent">
                            <ul class="navbar-nav me-auto mb-2 mb-lg-0">
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/ru#docs">Documentation</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://runebook.dev/contributors">Contributors</a>
                                </li>
                                <li class="nav-item">
                                    <a class="nav-link" href="https://github.com/runebookdev/runebook/issues">GitHub</a>
                                </li>
                            </ul>
                                                                                                <button class="btn btn-success ms-2" id="showPopupButton">
                                        <i class="bi bi-translate"></i>
                                        Show English
                                    </button>
                                                                                        <div class="form-check form-switch ms-3">
                                <label class="text-light">
                                    <input class="form-check-input" type="checkbox" role="switch" id="theme-switch" checked>
                                    <i class="bi bi-moon-stars-fill"></i>
                                </label>
                            </div>
                        </div>
                    </nav>
                </div>
            </div>
        </div>
    </header>

    <!--sse-->
    <div class="container">
    <div class="row">
        <div class="col">
            <nav aria-label="breadcrumb" class="mt-2">
                <ol class="breadcrumb mb-1">
                    <li class="breadcrumb-item">
                        <a href="https://runebook.dev/ru#docs">
                            <span class="fi fi-ru"></span>                            Русский                        </a>
                    </li>
                    <li class="breadcrumb-item">
                        <a href="-index-.html">
                            Git                            2.43                        </a>
                    </li>
                                            <li class="breadcrumb-item">
                            <a href="-index-.html#Git">
                                Git                            </a>
                        </li>
                                    </ol>
            </nav>
        </div>
    </div>
    <br>

    <div class="row">
        <div class="col-md-9">
            <main>
                <article>

                    
                    <h1 class="text-body-emphasis" ><span data-i18n="91c529f3749b8a4ea8b82222486406c6267a3e58ae97c67350fac2ae5de460d7/b2" data-source="git-maintenance" onmousemove="i18n(this)">git-maintenance</span></h1> <h2 class="text-body-emphasis"  id="_name"><span data-i18n="dcd1d5223f73b3a965c07e3ff5dbee3eedcfedb806686a05b9b3868a2c3d6d50/3a" data-source="Name" onmousemove="i18n(this)">Name</span></h2> <div> <p><span data-i18n="5835b8352bc9dd78fc0a38252d0ec1ac98eac7a80ca1d76deccaffe99d921d36/cd" data-source="git-maintenance - Run tasks to optimize Git repository data" onmousemove="i18n(this)">git-maintenance &mdash; &zcy;&acy;&pcy;&ucy;&scy;&kcy; &zcy;&acy;&dcy;&acy;&chcy; &pcy;&ocy; &ocy;&pcy;&tcy;&icy;&mcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;  Git .</span></p> </div> <h2 class="text-body-emphasis"  id="_synopsis"><span data-i18n="8eb3755381519d7f0479d75446e56e20084834c0460d7ec94926932372ea6c47/0d" data-source="Synopsis" onmousemove="i18n(this)">Synopsis</span></h2> <div> <div> <pre class="hljs language-scss">git maintenance run <span class="hljs-selector-attr">[&lt;options&gt;]</span>
git maintenance start <span class="hljs-selector-attr">[--scheduler=&lt;scheduler&gt;]</span>
git maintenance (stop|register|unregister) <span class="hljs-selector-attr">[&lt;options&gt;]</span></pre> </div> </div> <h2 class="text-body-emphasis"  id="_description"><span data-i18n="526e0087cc3f254d9f86f6c7d8e23d954c4dfda2b312efc29194ae8a860106ba/d3" data-source="Description" onmousemove="i18n(this)">Description</span></h2> <div> <p><span data-i18n="fe462cc1b36a032a5619f6a2ff2dc860a6f6eede857d915ee844971e3ab1dfd4/87" data-source="Run tasks to optimize Git repository data, speeding up other Git commands and reducing storage requirements for the repository." onmousemove="i18n(this)">&Zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&jcy;&tcy;&iecy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &pcy;&ocy; &ocy;&pcy;&tcy;&icy;&mcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;  Git , &ucy;&scy;&kcy;&ocy;&rcy;&yacy;&yacy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&iecy; &dcy;&rcy;&ucy;&gcy;&icy;&khcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;  Git  &icy; &scy;&ncy;&icy;&zhcy;&acy;&yacy; &tcy;&rcy;&iecy;&bcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &kcy; &ocy;&bcy;&hardcy;&iecy;&mcy;&ucy; &khcy;&rcy;&acy;&ncy;&icy;&lcy;&icy;&shchcy;&acy; &dcy;&lcy;&yacy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;.</span></p> <p><span data-i18n="0fa0e3f07ff07a26659f5a7c2793949b87468be6d1f672bf09f20593e9959a1d/6d" data-source="Git commands that add repository data, such as &lt;code&gt;git add&lt;/code&gt; or &lt;code&gt;git fetch&lt;/code&gt;, are optimized for a responsive user experience. These commands do not take time to optimize the Git data, since such optimizations scale with the full size of the repository while these user commands each perform a relatively small action." onmousemove="i18n(this)">&Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  Git , &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&yucy;&shchcy;&icy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;, &tcy;&acy;&kcy;&icy;&iecy; &kcy;&acy;&kcy;  <code>git add</code>  &icy;&lcy;&icy;  <code>git fetch</code> , &ocy;&pcy;&tcy;&icy;&mcy;&icy;&zcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ycy; &dcy;&lcy;&yacy; &bcy;&ycy;&scy;&tcy;&rcy;&ocy;&gcy;&ocy; &rcy;&iecy;&acy;&gcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&iecy;&jcy;. &Ecy;&tcy;&icy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &ncy;&iecy; &tcy;&rcy;&iecy;&bcy;&ucy;&yucy;&tcy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&icy; &dcy;&lcy;&yacy; &ocy;&pcy;&tcy;&icy;&mcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;  Git , &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &tcy;&acy;&kcy;&acy;&yacy; &ocy;&pcy;&tcy;&icy;&mcy;&icy;&zcy;&acy;&tscy;&icy;&yacy; &mcy;&acy;&scy;&shcy;&tcy;&acy;&bcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &vcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&icy;&icy; &scy; &pcy;&ocy;&lcy;&ncy;&ycy;&mcy; &rcy;&acy;&zcy;&mcy;&iecy;&rcy;&ocy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;, &vcy; &tcy;&ocy; &vcy;&rcy;&iecy;&mcy;&yacy; &kcy;&acy;&kcy; &kcy;&acy;&zhcy;&dcy;&acy;&yacy; &icy;&zcy; &ecy;&tcy;&icy;&khcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&khcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy; &ocy;&tcy;&ncy;&ocy;&scy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; &ncy;&iecy;&bcy;&ocy;&lcy;&softcy;&shcy;&ocy;&iecy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&iecy;.</span></p> <p><span data-i18n="0f8e48982ac8b12f1ae821962d99d9f66be90af867f13d0d67820e0c013a6a9d/7c" data-source="The &lt;code&gt;git maintenance&lt;/code&gt; command provides flexibility for how to optimize the Git repository." onmousemove="i18n(this)">&Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>git maintenance</code>  &ocy;&bcy;&iecy;&scy;&pcy;&iecy;&chcy;&icy;&vcy;&acy;&iecy;&tcy; &gcy;&icy;&bcy;&kcy;&ocy;&scy;&tcy;&softcy; &ocy;&pcy;&tcy;&icy;&mcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;  Git .</span></p> </div> <h2 class="text-body-emphasis"  id="_subcommands"><span data-i18n="3b5ab20422e12ebbcc7d9250c390d36b55ab9befe2a2542ac4313d49e2ea7054/48" data-source="Subcommands" onmousemove="i18n(this)">Subcommands</span></h2> <div> <div> <dl> <dt id="Documentation/git-maintenance.txt-run"><span data-i18n="acba25512100f80b56fc3ccd14c65be55d94800cda77585c5f41a887e398f9be/1c" data-source="run" onmousemove="i18n(this)">run</span></dt> <dd> <p><span data-i18n="dae077b18b1f732f8c0f52b781fbbff42c93e878bfb62d9041ea23068a63f518/46" data-source="Run one or more maintenance tasks. If one or more &lt;code&gt;--task&lt;/code&gt; options are specified, then those tasks are run in that order. Otherwise, the tasks are determined by which &lt;code&gt;maintenance.&amp;lt;task&amp;gt;.enabled&lt;/code&gt; config options are true. By default, only &lt;code&gt;maintenance.gc.enabled&lt;/code&gt; is true." onmousemove="i18n(this)">&Zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&iecy; &ocy;&dcy;&ncy;&ucy; &icy;&lcy;&icy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &zcy;&acy;&dcy;&acy;&chcy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy;. &IEcy;&scy;&lcy;&icy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ycy; &ocy;&dcy;&icy;&ncy; &icy;&lcy;&icy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&vcy;  <code>--task</code> , &ecy;&tcy;&icy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy; &vcy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ocy;&mcy; &pcy;&ocy;&rcy;&yacy;&dcy;&kcy;&iecy;. &Vcy; &pcy;&rcy;&ocy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy; &tcy;&iecy;&mcy;, &kcy;&acy;&kcy;&icy;&iecy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>maintenance.&lt;task&gt;.enabled</code>  &vcy;&iecy;&rcy;&ncy;&ycy;. &Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &vcy;&iecy;&rcy;&iecy;&ncy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy;  <code>maintenance.gc.enabled</code> .</span></p> </dd> <dt id="Documentation/git-maintenance.txt-start"><span data-i18n="cced28c6dc3f99c2396a5eaad732bf6b28142335892b1cd0e6af6cdb53f5ccfa/9b" data-source="start" onmousemove="i18n(this)">start</span></dt> <dd> <p><span data-i18n="f3f90634edac5c7f4ad2df49e4fb28da57ce147b65c954e08fb4bd0864eed4ac/96" data-source="Start running maintenance on the current repository. This performs the same config updates as the &lt;code&gt;register&lt;/code&gt; subcommand, then updates the background scheduler to run &lt;code&gt;git maintenance run --scheduled&lt;/code&gt; on an hourly basis." onmousemove="i18n(this)">&Ncy;&acy;&chcy;&ncy;&icy;&tcy;&iecy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&iecy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&gcy;&ocy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;. &Pcy;&rcy;&icy; &ecy;&tcy;&ocy;&mcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy; &tcy;&iecy; &zhcy;&iecy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;, &chcy;&tcy;&ocy; &icy; &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ocy;&jcy;  <code>register</code> , &acy; &zcy;&acy;&tcy;&iecy;&mcy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &fcy;&ocy;&ncy;&ocy;&vcy;&ycy;&jcy; &pcy;&lcy;&acy;&ncy;&icy;&rcy;&ocy;&vcy;&shchcy;&icy;&kcy; &dcy;&lcy;&yacy; &iecy;&zhcy;&iecy;&chcy;&acy;&scy;&ncy;&ocy;&gcy;&ocy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;  <code>git maintenance run --scheduled</code> .</span></p> </dd> <dt id="Documentation/git-maintenance.txt-stop"><span data-i18n="6c45cb72a36e63d522aa54ed8adbd7a29a989474f2f77e0458af8800564ef3cb/23" data-source="stop" onmousemove="i18n(this)">stop</span></dt> <dd> <p><span data-i18n="42356b3976c000a910149e1406f6d63421a99d4b1597b9a90cd56e050bc57f03/0a" data-source="Halt the background maintenance schedule. The current repository is not removed from the list of maintained repositories, in case the background maintenance is restarted later." onmousemove="i18n(this)">&Ocy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy;&iecy; &gcy;&rcy;&acy;&fcy;&icy;&kcy; &fcy;&ocy;&ncy;&ocy;&vcy;&ocy;&gcy;&ocy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy;. &Tcy;&iecy;&kcy;&ucy;&shchcy;&icy;&jcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy; &ncy;&iecy; &ucy;&dcy;&acy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &icy;&zcy; &scy;&pcy;&icy;&scy;&kcy;&acy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&iecy;&mcy;&ycy;&khcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&iecy;&vcy;, &iecy;&scy;&lcy;&icy; &fcy;&ocy;&ncy;&ocy;&vcy;&ocy;&iecy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&ucy;&shchcy;&iecy;&ncy;&ocy; &pcy;&ocy;&zcy;&zhcy;&iecy;.</span></p> </dd> <dt id="Documentation/git-maintenance.txt-register"><span data-i18n="87780fa5de684e87cb92b279f0bc07b14f572851e73b8943a097c1770a5f38e6/c9" data-source="register" onmousemove="i18n(this)">register</span></dt> <dd> <p><span data-i18n="9e5a7c31ce0e9c0308e13614e7f7e2a1dffee9bedeb5c9532251e30f05d4cc69/9d" data-source="Initialize Git config values so any scheduled maintenance will start running on this repository. This adds the repository to the &lt;code&gt;maintenance.repo&lt;/code&gt; config variable in the current user&amp;rsquo;s global config, or the config specified by --config-file option, and enables some recommended configuration values for &lt;code&gt;maintenance.&amp;lt;task&amp;gt;.schedule&lt;/code&gt;. The tasks that are enabled are safe for running in the background without disrupting foreground processes." onmousemove="i18n(this)">&Icy;&ncy;&icy;&tscy;&icy;&acy;&lcy;&icy;&zcy;&icy;&rcy;&ucy;&jcy;&tcy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  Git , &chcy;&tcy;&ocy;&bcy;&ycy; &vcy; &ecy;&tcy;&ocy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy; &ncy;&acy;&chcy;&acy;&lcy;&ocy;&scy;&softcy; &lcy;&yucy;&bcy;&ocy;&iecy; &pcy;&lcy;&acy;&ncy;&ocy;&vcy;&ocy;&iecy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&iecy;. &Ecy;&tcy;&ocy; &dcy;&ocy;&bcy;&acy;&vcy;&icy;&tcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy; &vcy; &pcy;&iecy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ucy;&yucy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>maintenance.repo</code>  &vcy; &gcy;&lcy;&ocy;&bcy;&acy;&lcy;&softcy;&ncy;&ocy;&jcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&gcy;&ocy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy; &icy;&lcy;&icy; &vcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&yucy;, &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ucy;&yucy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ocy;&mcy; --config-file, &icy; &acy;&kcy;&tcy;&icy;&vcy;&icy;&rcy;&ucy;&iecy;&tcy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &rcy;&iecy;&kcy;&ocy;&mcy;&iecy;&ncy;&dcy;&ucy;&iecy;&mcy;&ycy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &dcy;&lcy;&yacy;  <code>maintenance.&lt;task&gt;.schedule</code>  . &Vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ncy;&ycy;&iecy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &mcy;&ocy;&zhcy;&ncy;&ocy; &bcy;&iecy;&zcy;&ocy;&pcy;&acy;&scy;&ncy;&ocy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&tcy;&softcy; &vcy; &fcy;&ocy;&ncy;&ocy;&vcy;&ocy;&mcy; &rcy;&iecy;&zhcy;&icy;&mcy;&iecy;, &ncy;&iecy; &ncy;&acy;&rcy;&ucy;&shcy;&acy;&yacy; &pcy;&rcy;&icy;&ocy;&rcy;&icy;&tcy;&iecy;&tcy;&ncy;&ycy;&iecy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ycy;.</span></p> <p><span data-i18n="38be2b89cb2d6d5d4caaff5b510f71fb88152b369f30de72bcebb3fb37def6d5/8e" data-source="The &lt;code&gt;register&lt;/code&gt; subcommand will also set the &lt;code&gt;maintenance.strategy&lt;/code&gt; config value to &lt;code&gt;incremental&lt;/code&gt;, if this value is not previously set. The &lt;code&gt;incremental&lt;/code&gt; strategy uses the following schedule for each maintenance task:" onmousemove="i18n(this)">&Scy;&ucy;&bcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>register</code>  &tcy;&acy;&kcy;&zhcy;&iecy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>maintenance.strategy</code>  &ncy;&acy;  <code>incremental</code> , &iecy;&scy;&lcy;&icy; &ecy;&tcy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &ncy;&iecy; &bcy;&ycy;&lcy;&ocy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ocy; &rcy;&acy;&ncy;&iecy;&iecy;. &Scy;&tcy;&rcy;&acy;&tcy;&iecy;&gcy;&icy;&yacy;  <code>incremental</code>  &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&jcy; &gcy;&rcy;&acy;&fcy;&icy;&kcy; &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&jcy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy;:</span></p> <div> <div> <div> <ul> <li> <p><span data-i18n="3c673497f8e9807a41ab226ac559be3aebd7f60b8f6dc27f202a72dfff595ba2/c4" data-source="&lt;code&gt;gc&lt;/code&gt;: disabled." onmousemove="i18n(this)"><code>gc</code>: disabled.</span></p> </li> <li> <p><span data-i18n="2db142051469b4d5fd76e1886ba45daaed890f04d5996dbcf63efdd43b7a4bfd/ee" data-source="&lt;code&gt;commit-graph&lt;/code&gt;: hourly." onmousemove="i18n(this)"><code>commit-graph</code>: hourly.</span></p> </li> <li> <p><span data-i18n="cea2c27a664faac32063bf76851e8009f225670bfea37e0f9b4fd53f5762193f/c6" data-source="&lt;code&gt;prefetch&lt;/code&gt;: hourly." onmousemove="i18n(this)"><code>prefetch</code>: hourly.</span></p> </li> <li> <p><span data-i18n="958241d03e4a5c1e3ad7d9fd82f9fa141293ad062fdadc143cac413340c37021/52" data-source="&lt;code&gt;loose-objects&lt;/code&gt;: daily." onmousemove="i18n(this)"><code>loose-objects</code>: daily.</span></p> </li> <li> <p><span data-i18n="2cf0a8f67a11a3d84637d38e8d323c62f1e8fb97e072166749a5893b135e7a5b/79" data-source="&lt;code&gt;incremental-repack&lt;/code&gt;: daily." onmousemove="i18n(this)"><code>incremental-repack</code>: daily.</span></p> </li> </ul> </div> </div> </div> <p><span data-i18n="73f9a43d9c2c4f0f1e6a3a6acb00258696d4c73b0fcd58486ed9b474b787534d/76" data-source="&lt;code&gt;git maintenance register&lt;/code&gt; will also disable foreground maintenance by setting &lt;code&gt;maintenance.auto = false&lt;/code&gt; in the current repository. This config setting will remain after a &lt;code&gt;git maintenance unregister&lt;/code&gt; command." onmousemove="i18n(this)"><code>git maintenance register</code>  &tcy;&acy;&kcy;&zhcy;&iecy; &ocy;&tcy;&kcy;&lcy;&yucy;&chcy;&icy;&tcy; &pcy;&rcy;&icy;&ocy;&rcy;&icy;&tcy;&iecy;&tcy;&ncy;&ocy;&iecy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&iecy;, &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&vcy;  <code>maintenance.auto = false</code>  &vcy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;. &Ecy;&tcy;&ocy;&tcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&icy;&tcy;&scy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>git maintenance unregister</code> .</span></p> </dd> <dt id="Documentation/git-maintenance.txt-unregister"><span data-i18n="53ee2d444fc5438f6ed03f6610d628aa3174e703ec0d0ff9ea4998124f120843/8e" data-source="unregister" onmousemove="i18n(this)">unregister</span></dt> <dd> <p><span data-i18n="91505f3aa52bb322bebfbf5a117816203adc6cb0da963124aac8f1ba6c790c74/33" data-source="Remove the current repository from background maintenance. This only removes the repository from the configured list. It does not stop the background maintenance processes from running." onmousemove="i18n(this)">&Ucy;&dcy;&acy;&lcy;&icy;&tcy;&iecy; &tcy;&iecy;&kcy;&ucy;&shchcy;&icy;&jcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy; &icy;&zcy; &rcy;&iecy;&zhcy;&icy;&mcy;&acy; &fcy;&ocy;&ncy;&ocy;&vcy;&ocy;&gcy;&ocy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy;. &Ecy;&tcy;&ocy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ucy;&dcy;&acy;&lcy;&icy;&tcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy; &icy;&zcy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &scy;&pcy;&icy;&scy;&kcy;&acy;. &Ecy;&tcy;&ocy; &ncy;&iecy; &ocy;&scy;&tcy;&acy;&ncy;&acy;&vcy;&lcy;&icy;&vcy;&acy;&iecy;&tcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&iecy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ocy;&vcy; &fcy;&ocy;&ncy;&ocy;&vcy;&ocy;&gcy;&ocy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy;.</span></p> <p><span data-i18n="a5ed3deaf722974f04f3b00822aaddb3d01c216d6028f72cc8b5b19fe728664a/e1" data-source="The &lt;code&gt;unregister&lt;/code&gt; subcommand will report an error if the current repository is not already registered. Use the &lt;code&gt;--force&lt;/code&gt; option to return success even when the current repository is not registered." onmousemove="i18n(this)">&Pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>unregister</code>  &scy;&ocy;&ocy;&bcy;&shchcy;&icy;&tcy; &ocy;&bcy; &ocy;&shcy;&icy;&bcy;&kcy;&iecy;, &iecy;&scy;&lcy;&icy; &tcy;&iecy;&kcy;&ucy;&shchcy;&icy;&jcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy; &iecy;&shchcy;&iecy; &ncy;&iecy; &zcy;&acy;&rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;. &Icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy; &ocy;&pcy;&tscy;&icy;&yucy;  <code>--force</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &vcy;&iecy;&rcy;&ncy;&ucy;&tcy;&softcy; &ucy;&scy;&pcy;&iecy;&khcy;, &dcy;&acy;&zhcy;&iecy; &iecy;&scy;&lcy;&icy; &tcy;&iecy;&kcy;&ucy;&shchcy;&icy;&jcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy; &ncy;&iecy; &zcy;&acy;&rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;.</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_tasks"><span data-i18n="b3a60e61a5233d0506ac737405a2a45280349683cac68722f18d0b73eb495ef4/c9" data-source="Tasks" onmousemove="i18n(this)">Tasks</span></h2> <div> <div> <dl> <dt id="Documentation/git-maintenance.txt-commit-graph"><span data-i18n="31ffe4507aa223d6475e6ccb4eed7dd3db16c821a016153236e8341251df4bdf/0f" data-source="commit-graph" onmousemove="i18n(this)">commit-graph</span></dt> <dd> <p><span data-i18n="676b1eab0146434b9a23744afb32d99e2bec519aea3d6395ee64e57d6818f573/2a" data-source="The &lt;code&gt;commit-graph&lt;/code&gt; job updates the &lt;code&gt;commit-graph&lt;/code&gt; files incrementally, then verifies that the written data is correct. The incremental write is safe to run alongside concurrent Git processes since it will not expire &lt;code&gt;.graph&lt;/code&gt; files that were in the previous &lt;code&gt;commit-graph-chain&lt;/code&gt; file. They will be deleted by a later run based on the expiration delay." onmousemove="i18n(this)">&Zcy;&acy;&dcy;&acy;&ncy;&icy;&iecy;  <code>commit-graph</code>  &pcy;&ocy;&scy;&tcy;&iecy;&pcy;&iecy;&ncy;&ncy;&ocy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&tcy; &fcy;&acy;&jcy;&lcy;&ycy;  <code>commit-graph</code> , &acy; &zcy;&acy;&tcy;&iecy;&mcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&yacy;&iecy;&tcy; &pcy;&rcy;&acy;&vcy;&icy;&lcy;&softcy;&ncy;&ocy;&scy;&tcy;&softcy; &zcy;&acy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ycy;&khcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;. &Icy;&ncy;&kcy;&rcy;&iecy;&mcy;&iecy;&ncy;&tcy;&acy;&lcy;&softcy;&ncy;&ucy;&yucy; &zcy;&acy;&pcy;&icy;&scy;&softcy; &mcy;&ocy;&zhcy;&ncy;&ocy; &bcy;&iecy;&zcy;&ocy;&pcy;&acy;&scy;&ncy;&ocy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&tcy;&softcy; &vcy;&mcy;&iecy;&scy;&tcy;&iecy; &scy; &pcy;&acy;&rcy;&acy;&lcy;&lcy;&iecy;&lcy;&softcy;&ncy;&ycy;&mcy;&icy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&acy;&mcy;&icy;  Git , &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &ocy;&ncy;&acy; &ncy;&iecy; &icy;&scy;&tcy;&iecy;&chcy;&iecy;&tcy; &scy;&rcy;&ocy;&kcy;&acy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&yacy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;  <code>.graph</code> , &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &bcy;&ycy;&lcy;&icy; &vcy; &pcy;&rcy;&iecy;&dcy;&ycy;&dcy;&ucy;&shchcy;&iecy;&mcy; &fcy;&acy;&jcy;&lcy;&iecy;  <code>commit-graph-chain</code> . &Ocy;&ncy;&icy; &bcy;&ucy;&dcy;&ucy;&tcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ycy; &pcy;&rcy;&icy; &bcy;&ocy;&lcy;&iecy;&iecy; &pcy;&ocy;&zcy;&dcy;&ncy;&iecy;&mcy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&iecy; &vcy; &zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy;&scy;&tcy;&icy; &ocy;&tcy; &zcy;&acy;&dcy;&iecy;&rcy;&zhcy;&kcy;&icy; &icy;&scy;&tcy;&iecy;&chcy;&iecy;&ncy;&icy;&yacy; &scy;&rcy;&ocy;&kcy;&acy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&yacy;.</span></p> </dd> <dt id="Documentation/git-maintenance.txt-prefetch"><span data-i18n="4653c580b63bba1b5cd175c99bd2f3dbc73ec41694bc304be2e41e1f05bb81cd/d7" data-source="prefetch" onmousemove="i18n(this)">prefetch</span></dt> <dd> <p><span data-i18n="67339254a09403b4a5c992523595be9683e9448f9287e7f2f3d272367dd2bd3c/2a" data-source="The &lt;code&gt;prefetch&lt;/code&gt; task updates the object directory with the latest objects from all registered remotes. For each remote, a &lt;code&gt;git fetch&lt;/code&gt; command is run. The configured refspec is modified to place all requested refs within &lt;code&gt;refs/prefetch/&lt;/code&gt;. Also, tags are not updated." onmousemove="i18n(this)">&Zcy;&acy;&dcy;&acy;&chcy;&acy;  <code>prefetch</code>  &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&iecy;&tcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy; &ncy;&ocy;&vcy;&iecy;&jcy;&shcy;&icy;&mcy;&icy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;&mcy;&icy; &scy;&ocy; &vcy;&scy;&iecy;&khcy; &zcy;&acy;&rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&khcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &ucy;&scy;&tcy;&rcy;&ocy;&jcy;&scy;&tcy;&vcy;. &Dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy; &pcy;&ucy;&lcy;&softcy;&tcy;&acy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;&scy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>git fetch</code> . &Ncy;&acy;&scy;&tcy;&rcy;&ocy;&iecy;&ncy;&ncy;&acy;&yacy; &scy;&pcy;&iecy;&tscy;&icy;&fcy;&icy;&kcy;&acy;&tscy;&icy;&yacy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; &icy;&zcy;&mcy;&iecy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &dcy;&lcy;&yacy; &rcy;&acy;&zcy;&mcy;&iecy;&shchcy;&iecy;&ncy;&icy;&yacy; &vcy;&scy;&iecy;&khcy; &zcy;&acy;&pcy;&rcy;&ocy;&shcy;&iecy;&ncy;&ncy;&ycy;&khcy; &scy;&scy;&ycy;&lcy;&ocy;&kcy; &vcy;  <code>refs/prefetch/</code> . &Tcy;&acy;&kcy;&zhcy;&iecy; &tcy;&iecy;&gcy;&icy; &ncy;&iecy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&yacy;&yucy;&tcy;&scy;&yacy;.</span></p> <p><span data-i18n="c86eaf349909ae6a02ceaadfa6699fb52ca93ae14ff9f40ab4371b34b45300c3/48" data-source="This is done to avoid disrupting the remote-tracking branches. The end users expect these refs to stay unmoved unless they initiate a fetch. However, with the prefetch task, the objects necessary to complete a later real fetch would already be obtained, making the real fetch faster. In the ideal case, it will just become an update to a bunch of remote-tracking branches without any object transfer." onmousemove="i18n(this)">&Ecy;&tcy;&ocy; &scy;&dcy;&iecy;&lcy;&acy;&ncy;&ocy; &dcy;&lcy;&yacy; &tcy;&ocy;&gcy;&ocy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ncy;&iecy; &ncy;&acy;&rcy;&ucy;&shcy;&acy;&tcy;&softcy; &rcy;&acy;&bcy;&ocy;&tcy;&ucy; &vcy;&iecy;&tcy;&vcy;&iecy;&jcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy;. &Kcy;&ocy;&ncy;&iecy;&chcy;&ncy;&ycy;&iecy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&icy; &ocy;&zhcy;&icy;&dcy;&acy;&yucy;&tcy;, &chcy;&tcy;&ocy; &ecy;&tcy;&icy; &scy;&scy;&ycy;&lcy;&kcy;&icy; &ocy;&scy;&tcy;&acy;&ncy;&ucy;&tcy;&scy;&yacy; &ncy;&iecy;&pcy;&ocy;&dcy;&vcy;&icy;&zhcy;&ncy;&ycy;&mcy;&icy;, &iecy;&scy;&lcy;&icy; &ocy;&ncy;&icy; &ncy;&iecy; &icy;&ncy;&icy;&tscy;&icy;&icy;&rcy;&ucy;&yucy;&tcy; &vcy;&ycy;&bcy;&ocy;&rcy;&kcy;&ucy;. &Ocy;&dcy;&ncy;&acy;&kcy;&ocy; &pcy;&rcy;&icy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&icy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &pcy;&rcy;&iecy;&dcy;&vcy;&acy;&rcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&jcy; &vcy;&ycy;&bcy;&ocy;&rcy;&kcy;&icy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy;, &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ycy;&iecy; &dcy;&lcy;&yacy; &zcy;&acy;&vcy;&iecy;&rcy;&shcy;&iecy;&ncy;&icy;&yacy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&jcy; &rcy;&iecy;&acy;&lcy;&softcy;&ncy;&ocy;&jcy; &vcy;&ycy;&bcy;&ocy;&rcy;&kcy;&icy;, &ucy;&zhcy;&iecy; &bcy;&ucy;&dcy;&ucy;&tcy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&ycy;, &chcy;&tcy;&ocy; &ucy;&scy;&kcy;&ocy;&rcy;&yacy;&iecy;&tcy; &rcy;&iecy;&acy;&lcy;&softcy;&ncy;&ucy;&yucy; &vcy;&ycy;&bcy;&ocy;&rcy;&kcy;&ucy;. &Vcy; &icy;&dcy;&iecy;&acy;&lcy;&softcy;&ncy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &ecy;&tcy;&ocy; &bcy;&ucy;&dcy;&iecy;&tcy; &pcy;&rcy;&ocy;&scy;&tcy;&ocy; &ocy;&bcy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&icy;&iecy; &kcy;&ucy;&chcy;&icy; &vcy;&iecy;&tcy;&ocy;&kcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy; &ocy;&tcy;&scy;&lcy;&iecy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &bcy;&iecy;&zcy; &kcy;&acy;&kcy;&ocy;&jcy;-&lcy;&icy;&bcy;&ocy; &pcy;&iecy;&rcy;&iecy;&dcy;&acy;&chcy;&icy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy;.</span></p> </dd> <dt id="Documentation/git-maintenance.txt-gc"><span data-i18n="3e399c46e9652dadde7e51c0c0fa5ac911aa1908375f3ccf5595246cc508c5e4/c6" data-source="gc" onmousemove="i18n(this)">gc</span></dt> <dd> <p><span data-i18n="f7f8769179c76d660742b79c768d5b2738e9eff415a0e3ca4b998af1b9d309c4/25" data-source="Clean up unnecessary files and optimize the local repository. &amp;quot;GC&amp;quot; stands for &amp;quot;garbage collection,&amp;quot; but this task performs many smaller tasks. This task can be expensive for large repositories, as it repacks all Git objects into a single pack-file. It can also be disruptive in some situations, as it deletes stale data. See &lt;a href=&quot;git-gc&quot;&gt;git-gc[1]&lt;/a&gt; for more details on garbage collection in Git." onmousemove="i18n(this)">&Ocy;&chcy;&icy;&scy;&tcy;&icy;&tcy;&iecy; &ncy;&iecy;&ncy;&ucy;&zhcy;&ncy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &icy; &ocy;&pcy;&tcy;&icy;&mcy;&icy;&zcy;&icy;&rcy;&ucy;&jcy;&tcy;&iecy; &lcy;&ocy;&kcy;&acy;&lcy;&softcy;&ncy;&ycy;&jcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy;.  &quot;GC&quot;  &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy;  &quot;garbage collection,&quot; , &ncy;&ocy; &ecy;&tcy;&acy; &zcy;&acy;&dcy;&acy;&chcy;&acy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy; &mcy;&ncy;&ocy;&zhcy;&iecy;&scy;&tcy;&vcy;&ocy; &bcy;&ocy;&lcy;&iecy;&iecy; &mcy;&iecy;&lcy;&kcy;&icy;&khcy; &zcy;&acy;&dcy;&acy;&chcy;. &Ecy;&tcy;&acy; &zcy;&acy;&dcy;&acy;&chcy;&acy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &dcy;&ocy;&rcy;&ocy;&gcy;&ocy;&scy;&tcy;&ocy;&yacy;&shchcy;&iecy;&jcy; &dcy;&lcy;&yacy; &bcy;&ocy;&lcy;&softcy;&shcy;&icy;&khcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&iecy;&vcy;, &tcy;&acy;&kcy; &kcy;&acy;&kcy; &ocy;&ncy;&acy; &pcy;&iecy;&rcy;&iecy;&ucy;&pcy;&acy;&kcy;&ocy;&vcy;&ycy;&vcy;&acy;&iecy;&tcy; &vcy;&scy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy;  Git  &vcy; &ocy;&dcy;&icy;&ncy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy;. &Vcy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &scy;&icy;&tcy;&ucy;&acy;&tscy;&icy;&yacy;&khcy; &ecy;&tcy;&ocy; &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &rcy;&acy;&zcy;&rcy;&ucy;&shcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&mcy;, &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy; &ucy;&dcy;&acy;&lcy;&yacy;&iecy;&tcy; &ucy;&scy;&tcy;&acy;&rcy;&iecy;&vcy;&shcy;&icy;&iecy; &dcy;&acy;&ncy;&ncy;&ycy;&iecy;. &Dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&iecy; &scy;&vcy;&iecy;&dcy;&iecy;&ncy;&icy;&yacy; &ocy; &scy;&bcy;&ocy;&rcy;&kcy;&iecy; &mcy;&ucy;&scy;&ocy;&rcy;&acy; &vcy;  Git  &scy;&mcy;. &vcy;  <a href="git-gc.html">git-gc[1]</a> .</span></p> </dd> <dt id="Documentation/git-maintenance.txt-loose-objects"><span data-i18n="bde1d5c239cd90a0ebb44659b110774e4815d741010d6bf82c47422d2dae3269/67" data-source="loose-objects" onmousemove="i18n(this)">loose-objects</span></dt> <dd> <p><span data-i18n="2da84f3599fcb5f6eb6af56954687935c17397a40fa703fb179e0bde5be9721a/72" data-source="The &lt;code&gt;loose-objects&lt;/code&gt; job cleans up loose objects and places them into pack-files. In order to prevent race conditions with concurrent Git commands, it follows a two-step process. First, it deletes any loose objects that already exist in a pack-file; concurrent Git processes will examine the pack-file for the object data instead of the loose object. Second, it creates a new pack-file (starting with &amp;quot;loose-&amp;quot;) containing a batch of loose objects. The batch size is limited to 50 thousand objects to prevent the job from taking too long on a repository with many loose objects. The &lt;code&gt;gc&lt;/code&gt; task writes unreachable objects as loose objects to be cleaned up by a later step only if they are not re-added to a pack-file; for this reason it is not advisable to enable both the &lt;code&gt;loose-objects&lt;/code&gt; and &lt;code&gt;gc&lt;/code&gt; tasks at the same time." onmousemove="i18n(this)">&Zcy;&acy;&dcy;&acy;&ncy;&icy;&iecy;  <code>loose-objects</code>  &ocy;&chcy;&icy;&shchcy;&acy;&iecy;&tcy; &ncy;&iecy;&zcy;&acy;&kcy;&rcy;&iecy;&pcy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy; &icy; &pcy;&ocy;&mcy;&iecy;&shchcy;&acy;&iecy;&tcy; &icy;&khcy; &vcy; &pcy;&acy;&kcy;-&fcy;&acy;&jcy;&lcy;&ycy;. &CHcy;&tcy;&ocy;&bcy;&ycy; &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&tcy;&icy;&tcy;&softcy; &ucy;&scy;&lcy;&ocy;&vcy;&icy;&yacy; &gcy;&ocy;&ncy;&kcy;&icy; &scy; &ocy;&dcy;&ncy;&ocy;&vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&mcy;&icy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;&mcy;&icy;  Git , &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &dcy;&vcy;&ucy;&khcy;&ecy;&tcy;&acy;&pcy;&ncy;&ycy;&jcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;. &Vcy;&ocy;-&pcy;&iecy;&rcy;&vcy;&ycy;&khcy;, &ocy;&ncy; &ucy;&dcy;&acy;&lcy;&yacy;&iecy;&tcy; &vcy;&scy;&iecy; &ncy;&iecy;&zcy;&acy;&kcy;&rcy;&iecy;&pcy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ucy;&zhcy;&iecy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&yucy;&tcy; &vcy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ocy;&mcy; &fcy;&acy;&jcy;&lcy;&iecy;; &pcy;&acy;&rcy;&acy;&lcy;&lcy;&iecy;&lcy;&softcy;&ncy;&ycy;&iecy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ycy;  Git  &bcy;&ucy;&dcy;&ucy;&tcy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&yacy;&tcy;&softcy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy; &ncy;&acy; &pcy;&rcy;&iecy;&dcy;&mcy;&iecy;&tcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;, &acy; &ncy;&iecy; &ocy;&tcy;&dcy;&iecy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&acy;. &Vcy;&ocy;-&vcy;&tcy;&ocy;&rcy;&ycy;&khcy;, &ocy;&ncy; &scy;&ocy;&zcy;&dcy;&acy;&iecy;&tcy; &ncy;&ocy;&vcy;&ycy;&jcy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy; (&ncy;&acy;&chcy;&icy;&ncy;&acy;&yacy; &scy;  &quot;loose-&quot; ), &scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&shchcy;&icy;&jcy; &pcy;&acy;&kcy;&iecy;&tcy; &ncy;&iecy;&zcy;&acy;&kcy;&rcy;&iecy;&pcy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy;. &Rcy;&acy;&zcy;&mcy;&iecy;&rcy; &pcy;&acy;&kcy;&iecy;&tcy;&acy; &ocy;&gcy;&rcy;&acy;&ncy;&icy;&chcy;&iecy;&ncy; 50 &tcy;&ycy;&scy;&yacy;&chcy;&acy;&mcy;&icy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &zcy;&acy;&dcy;&acy;&ncy;&icy;&iecy; &ncy;&iecy; &zcy;&acy;&ncy;&icy;&mcy;&acy;&lcy;&ocy; &scy;&lcy;&icy;&shcy;&kcy;&ocy;&mcy; &mcy;&ncy;&ocy;&gcy;&ocy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&icy; &vcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy; &scy; &bcy;&ocy;&lcy;&softcy;&shcy;&icy;&mcy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy;&mcy; &ncy;&iecy;&zcy;&acy;&kcy;&rcy;&iecy;&pcy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy;. &Zcy;&acy;&dcy;&acy;&chcy;&acy;  <code>gc</code>  &zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy; &ncy;&iecy;&dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy; &kcy;&acy;&kcy; &ncy;&iecy;&zcy;&acy;&kcy;&rcy;&iecy;&pcy;&lcy;&iecy;&ncy;&ncy;&ycy;&iecy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ycy;, &pcy;&ocy;&dcy;&lcy;&iecy;&zhcy;&acy;&shchcy;&icy;&iecy; &ocy;&chcy;&icy;&scy;&tcy;&kcy;&iecy; &ncy;&acy; &bcy;&ocy;&lcy;&iecy;&iecy; &pcy;&ocy;&zcy;&dcy;&ncy;&iecy;&mcy; &ecy;&tcy;&acy;&pcy;&iecy;, &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &iecy;&scy;&lcy;&icy; &ocy;&ncy;&icy; &ncy;&iecy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&iecy;&ncy;&ycy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&ncy;&ocy; &vcy; &pcy;&acy;&kcy;&iecy;&tcy;&ncy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy;; &pcy;&ocy; &ecy;&tcy;&ocy;&jcy; &pcy;&rcy;&icy;&chcy;&icy;&ncy;&iecy; &ncy;&iecy; &rcy;&iecy;&kcy;&ocy;&mcy;&iecy;&ncy;&dcy;&ucy;&iecy;&tcy;&scy;&yacy; &ocy;&dcy;&ncy;&ocy;&vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy; &vcy;&kcy;&lcy;&yucy;&chcy;&acy;&tcy;&softcy; &zcy;&acy;&dcy;&acy;&chcy;&icy;  <code>loose-objects</code>  &icy;  <code>gc</code> .</span></p> </dd> <dt id="Documentation/git-maintenance.txt-incremental-repack"><span data-i18n="33049b793581b20697e9489fd1a8b8530c0948dfd8c8781599032dc7e00ad2fd/4a" data-source="incremental-repack" onmousemove="i18n(this)">incremental-repack</span></dt> <dd> <p><span data-i18n="a3b060bdcf8d146adb5530cf1bda5ddad85af35f775ff863c96e0450d11f63ce/e5" data-source="The &lt;code&gt;incremental-repack&lt;/code&gt; job repacks the object directory using the &lt;code&gt;multi-pack-index&lt;/code&gt; feature. In order to prevent race conditions with concurrent Git commands, it follows a two-step process. First, it calls &lt;code&gt;git multi-pack-index expire&lt;/code&gt; to delete pack-files unreferenced by the &lt;code&gt;multi-pack-index&lt;/code&gt; file. Second, it calls &lt;code&gt;git multi-pack-index repack&lt;/code&gt; to select several small pack-files and repack them into a bigger one, and then update the &lt;code&gt;multi-pack-index&lt;/code&gt; entries that refer to the small pack-files to refer to the new pack-file. This prepares those small pack-files for deletion upon the next run of &lt;code&gt;git multi-pack-index expire&lt;/code&gt;. The selection of the small pack-files is such that the expected size of the big pack-file is at least the batch size; see the &lt;code&gt;--batch-size&lt;/code&gt; option for the &lt;code&gt;repack&lt;/code&gt; subcommand in &lt;a href=&quot;git-multi-pack-index&quot;&gt;git-multi-pack-index[1]&lt;/a&gt;. The default batch-size is zero, which is a special case that attempts to repack all pack-files into a single pack-file." onmousemove="i18n(this)">&Zcy;&acy;&dcy;&acy;&ncy;&icy;&iecy;  <code>incremental-repack</code>  &pcy;&iecy;&rcy;&iecy;&ucy;&pcy;&acy;&kcy;&ocy;&vcy;&ycy;&vcy;&acy;&iecy;&tcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &fcy;&ucy;&ncy;&kcy;&tscy;&icy;&icy;  <code>multi-pack-index</code> . &CHcy;&tcy;&ocy;&bcy;&ycy; &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&tcy;&icy;&tcy;&softcy; &ucy;&scy;&lcy;&ocy;&vcy;&icy;&yacy; &gcy;&ocy;&ncy;&kcy;&icy; &scy; &ocy;&dcy;&ncy;&ocy;&vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&mcy;&icy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;&mcy;&icy;  Git , &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &dcy;&vcy;&ucy;&khcy;&ecy;&tcy;&acy;&pcy;&ncy;&ycy;&jcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;. &Scy;&ncy;&acy;&chcy;&acy;&lcy;&acy; &ocy;&ncy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;  <code>git multi-pack-index expire</code>  &dcy;&lcy;&yacy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&yacy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &pcy;&acy;&kcy;&iecy;&tcy;&acy;, &ncy;&acy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ncy;&iecy; &scy;&scy;&ycy;&lcy;&acy;&iecy;&tcy;&scy;&yacy; &fcy;&acy;&jcy;&lcy;  <code>multi-pack-index</code> . &Vcy;&ocy;-&vcy;&tcy;&ocy;&rcy;&ycy;&khcy;, &ocy;&ncy; &vcy;&ycy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy;  <code>git multi-pack-index repack</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &vcy;&ycy;&bcy;&rcy;&acy;&tcy;&softcy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ncy;&iecy;&bcy;&ocy;&lcy;&softcy;&shcy;&icy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;-&pcy;&acy;&kcy;&iecy;&tcy;&ocy;&vcy; &icy; &pcy;&iecy;&rcy;&iecy;&ucy;&pcy;&acy;&kcy;&ocy;&vcy;&acy;&tcy;&softcy; &icy;&khcy; &vcy; &ocy;&dcy;&icy;&ncy; &bcy;&ocy;&lcy;&softcy;&shcy;&icy;&jcy;, &acy; &zcy;&acy;&tcy;&iecy;&mcy; &ocy;&bcy;&ncy;&ocy;&vcy;&icy;&tcy;&softcy; &zcy;&acy;&pcy;&icy;&scy;&icy;  <code>multi-pack-index</code> , &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &scy;&scy;&ycy;&lcy;&acy;&yucy;&tcy;&scy;&yacy; &ncy;&acy; &ncy;&iecy;&bcy;&ocy;&lcy;&softcy;&shcy;&icy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;-&pcy;&acy;&kcy;&iecy;&tcy;&ycy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ocy;&ncy;&icy; &scy;&scy;&ycy;&lcy;&acy;&lcy;&icy;&scy;&softcy; &ncy;&acy; &ncy;&ocy;&vcy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy;-&pcy;&acy;&kcy;&iecy;&tcy;. &Ecy;&tcy;&ocy; &pcy;&ocy;&dcy;&gcy;&ocy;&tcy;&acy;&vcy;&lcy;&icy;&vcy;&acy;&iecy;&tcy; &ecy;&tcy;&icy; &ncy;&iecy;&bcy;&ocy;&lcy;&softcy;&shcy;&icy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &pcy;&acy;&kcy;&iecy;&tcy;&acy; &kcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&yucy; &pcy;&rcy;&icy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&mcy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&iecy;  <code>git multi-pack-index expire</code> . &Vcy;&ycy;&bcy;&ocy;&rcy; &mcy;&acy;&lcy;&iecy;&ncy;&softcy;&kcy;&icy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &ucy;&pcy;&acy;&kcy;&ocy;&vcy;&kcy;&icy; &tcy;&acy;&kcy;&ocy;&vcy;, &chcy;&tcy;&ocy; &ocy;&zhcy;&icy;&dcy;&acy;&iecy;&mcy;&ycy;&jcy; &rcy;&acy;&zcy;&mcy;&iecy;&rcy; &bcy;&ocy;&lcy;&softcy;&shcy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy; &ucy;&pcy;&acy;&kcy;&ocy;&vcy;&kcy;&icy; &rcy;&acy;&vcy;&iecy;&ncy;, &pcy;&ocy; &mcy;&iecy;&ncy;&softcy;&shcy;&iecy;&jcy; &mcy;&iecy;&rcy;&iecy;, &rcy;&acy;&zcy;&mcy;&iecy;&rcy;&ucy; &pcy;&acy;&kcy;&iecy;&tcy;&acy;; &scy;&mcy;. &ocy;&pcy;&tscy;&icy;&yucy;  <code>--batch-size</code>  &dcy;&lcy;&yacy; &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>repack</code>  &vcy;  <a href="git-multi-pack-index.html">git-multi-pack-index[1]</a> . &Rcy;&acy;&zcy;&mcy;&iecy;&rcy; &pcy;&acy;&kcy;&iecy;&tcy;&acy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &rcy;&acy;&vcy;&iecy;&ncy; &ncy;&ucy;&lcy;&yucy;, &chcy;&tcy;&ocy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &ocy;&scy;&ocy;&bcy;&ycy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy;&mcy;, &kcy;&ocy;&gcy;&dcy;&acy; &vcy;&scy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &pcy;&acy;&kcy;&iecy;&tcy;&acy; &pcy;&ycy;&tcy;&acy;&yucy;&tcy;&scy;&yacy; &pcy;&iecy;&rcy;&iecy;&ucy;&pcy;&acy;&kcy;&ocy;&vcy;&acy;&tcy;&softcy; &vcy; &ocy;&dcy;&icy;&ncy; &fcy;&acy;&jcy;&lcy; &pcy;&acy;&kcy;&iecy;&tcy;&acy;.</span></p> </dd> <dt id="Documentation/git-maintenance.txt-pack-refs"><span data-i18n="31d7e58c5787a0899fc108cd40d039416ce947888b890e3ca19cc673662af05e/e0" data-source="pack-refs" onmousemove="i18n(this)">pack-refs</span></dt> <dd> <p><span data-i18n="9643c8ceacb8a8a0026736a7d8c08fb3f25ce982af01d2a351deb05c97b9ba10/32" data-source="The &lt;code&gt;pack-refs&lt;/code&gt; task collects the loose reference files and collects them into a single file. This speeds up operations that need to iterate across many references. See &lt;a href=&quot;git-pack-refs&quot;&gt;git-pack-refs[1]&lt;/a&gt; for more information." onmousemove="i18n(this)">&Zcy;&acy;&dcy;&acy;&chcy;&acy;  <code>pack-refs</code>  &scy;&ocy;&bcy;&icy;&rcy;&acy;&iecy;&tcy; &ocy;&tcy;&dcy;&iecy;&lcy;&softcy;&ncy;&ycy;&iecy; &scy;&pcy;&rcy;&acy;&vcy;&ocy;&chcy;&ncy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &icy; &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&yacy;&iecy;&tcy; &icy;&khcy; &vcy; &ocy;&dcy;&icy;&ncy; &fcy;&acy;&jcy;&lcy;. &Ecy;&tcy;&ocy; &ucy;&scy;&kcy;&ocy;&rcy;&yacy;&iecy;&tcy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ncy;&iecy;&ocy;&bcy;&khcy;&ocy;&dcy;&icy;&mcy;&ocy; &pcy;&ocy;&vcy;&tcy;&ocy;&rcy;&yacy;&tcy;&softcy; &pcy;&ocy; &mcy;&ncy;&ocy;&zhcy;&iecy;&scy;&tcy;&vcy;&ucy; &scy;&scy;&ycy;&lcy;&ocy;&kcy;. &Scy;&mcy;.  <a href="git-pack-refs.html">git-pack-refs[1]</a>  &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&ucy;&chcy;&iecy;&ncy;&icy;&yacy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&jcy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&icy;.</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_options"><span data-i18n="d0db8b5e364b6989e4b8f38a2b3846b87d99a51c1592ebf35d21cc66405a8e39/b6" data-source="Options" onmousemove="i18n(this)">Options</span></h2> <div> <div> <dl> <dt id="Documentation/git-maintenance.txt---auto"><span data-i18n="5f3df84934858ee397a2559078fa1fa69e3c68555d63a726e5e582fa1863a795/cc" data-source="--auto" onmousemove="i18n(this)">--auto</span></dt> <dd> <p><span data-i18n="d2b53b85801fd705f3c8ac3736ac2c6e89426683fd46d04caeadacf15472b936/c7" data-source="When combined with the &lt;code&gt;run&lt;/code&gt; subcommand, run maintenance tasks only if certain thresholds are met. For example, the &lt;code&gt;gc&lt;/code&gt; task runs when the number of loose objects exceeds the number stored in the &lt;code&gt;gc.auto&lt;/code&gt; config setting, or when the number of pack-files exceeds the &lt;code&gt;gc.autoPackLimit&lt;/code&gt; config setting. Not compatible with the &lt;code&gt;--schedule&lt;/code&gt; option." onmousemove="i18n(this)">&Vcy; &scy;&ocy;&chcy;&iecy;&tcy;&acy;&ncy;&icy;&icy; &scy; &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ocy;&jcy;  <code>run</code>  &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&jcy;&tcy;&iecy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&rcy;&icy; &scy;&ocy;&bcy;&lcy;&yucy;&dcy;&iecy;&ncy;&icy;&icy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &pcy;&ocy;&rcy;&ocy;&gcy;&ocy;&vcy;&ycy;&khcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&jcy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &zcy;&acy;&dcy;&acy;&chcy;&acy;  <code>gc</code>  &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;&scy;&yacy;, &kcy;&ocy;&gcy;&dcy;&acy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &ncy;&iecy;&zcy;&acy;&kcy;&rcy;&iecy;&pcy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy; &pcy;&rcy;&iecy;&vcy;&ycy;&shcy;&acy;&iecy;&tcy; &chcy;&icy;&scy;&lcy;&ocy;, &khcy;&rcy;&acy;&ncy;&yacy;&shchcy;&iecy;&iecy;&scy;&yacy; &vcy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&iecy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>gc.auto</code> , &icy;&lcy;&icy; &kcy;&ocy;&gcy;&dcy;&acy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &pcy;&acy;&kcy;&iecy;&tcy;&acy; &pcy;&rcy;&iecy;&vcy;&ycy;&shcy;&acy;&iecy;&tcy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&ucy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>gc.autoPackLimit</code> . &Ncy;&iecy;&scy;&ocy;&vcy;&mcy;&iecy;&scy;&tcy;&icy;&mcy;&ocy; &scy; &ocy;&pcy;&tscy;&icy;&iecy;&jcy;  <code>--schedule</code> .</span></p> </dd> <dt id="Documentation/git-maintenance.txt---schedule"><span data-i18n="db47fd6d906e95389bb208b596b506906fc5623e23c1da030fa3e3d8bf689570/0e" data-source="--schedule" onmousemove="i18n(this)">--schedule</span></dt> <dd> <p><span data-i18n="08b6c2ddc108e4aac1879b38f3e8ad58ab510e446382892077d5b8f11fa2ad9e/56" data-source="When combined with the &lt;code&gt;run&lt;/code&gt; subcommand, run maintenance tasks only if certain time conditions are met, as specified by the &lt;code&gt;maintenance.&amp;lt;task&amp;gt;.schedule&lt;/code&gt; config value for each &lt;code&gt;&amp;lt;task&amp;gt;&lt;/code&gt;. This config value specifies a number of seconds since the last time that task ran, according to the &lt;code&gt;maintenance.&amp;lt;task&amp;gt;.lastRun&lt;/code&gt; config value. The tasks that are tested are those provided by the &lt;code&gt;--task=&amp;lt;task&amp;gt;&lt;/code&gt; option(s) or those with &lt;code&gt;maintenance.&amp;lt;task&amp;gt;.enabled&lt;/code&gt; set to true." onmousemove="i18n(this)">&Vcy; &scy;&ocy;&chcy;&iecy;&tcy;&acy;&ncy;&icy;&icy; &scy; &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ocy;&jcy;  <code>run</code>  &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&jcy;&tcy;&iecy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&rcy;&icy; &scy;&ocy;&bcy;&lcy;&yucy;&dcy;&iecy;&ncy;&icy;&icy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&khcy; &ucy;&scy;&lcy;&ocy;&vcy;&icy;&jcy;, &kcy;&acy;&kcy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ocy; &vcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&icy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>maintenance.&lt;task&gt;.schedule</code>  &dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&gcy;&ocy;  <code>&lt;task&gt;</code> . &Ecy;&tcy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &scy;&iecy;&kcy;&ucy;&ncy;&dcy; &scy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy;&acy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&iecy;&gcy;&ocy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy; &ecy;&tcy;&ocy;&jcy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &vcy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&icy;&icy; &scy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy;&mcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>maintenance.&lt;task&gt;.lastRun</code> . &Tcy;&iecy;&scy;&tcy;&icy;&rcy;&ucy;&yucy;&tcy;&scy;&yacy; &zcy;&acy;&dcy;&acy;&chcy;&icy;, &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&yacy;&iecy;&mcy;&ycy;&iecy; &ocy;&pcy;&tscy;&icy;&yacy;&mcy;&icy;  <code>--task=&lt;task&gt;</code> , &icy;&lcy;&icy; &zcy;&acy;&dcy;&acy;&chcy;&icy;, &dcy;&lcy;&yacy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy;  <code>maintenance.&lt;task&gt;.enabled</code>  &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; true.</span></p> </dd> <dt id="Documentation/git-maintenance.txt---quiet"><span data-i18n="b00818cdc507640687732769ee1cb501db377927ee76d03df23978bd0d706888/e2" data-source="--quiet" onmousemove="i18n(this)">--quiet</span></dt> <dd> <p><span data-i18n="0683827a48539bd457c41f8e57eb05af5de3d0efb67e11b9a0eaca7b88a76a96/c5" data-source="Do not report progress or other information over &lt;code&gt;stderr&lt;/code&gt;." onmousemove="i18n(this)">&Ncy;&iecy; &scy;&ocy;&ocy;&bcy;&shchcy;&acy;&jcy;&tcy;&iecy; &ocy; &khcy;&ocy;&dcy;&iecy; &rcy;&acy;&bcy;&ocy;&tcy;&ycy; &icy;&lcy;&icy; &dcy;&rcy;&ucy;&gcy;&ucy;&yucy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yucy; &pcy;&ocy;  <code>stderr</code> .</span></p> </dd> <dt id="Documentation/git-maintenance.txt---tasklttaskgt"><span data-i18n="3e27b2b3807ba2cb7550e65abfdba44a01fa9b85b7cff37371ac739a467de40d/f4" data-source="--task=&amp;lt;task&amp;gt;" onmousemove="i18n(this)">--task=&lt;task&gt;</span></dt> <dd> <p><span data-i18n="35eb30228b6c4945d87a3959a14c46d94065629068efc74ae01a92974b7c1336/a4" data-source="If this option is specified one or more times, then only run the specified tasks in the specified order. If no &lt;code&gt;--task=&amp;lt;task&amp;gt;&lt;/code&gt; arguments are specified, then only the tasks with &lt;code&gt;maintenance.&amp;lt;task&amp;gt;.enabled&lt;/code&gt; configured as &lt;code&gt;true&lt;/code&gt; are considered. See the &lt;code&gt;TASKS&lt;/code&gt; section for the list of accepted &lt;code&gt;&amp;lt;task&amp;gt;&lt;/code&gt; values." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &ecy;&tcy;&ocy;&tcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &ucy;&kcy;&acy;&zcy;&acy;&ncy; &ocy;&dcy;&icy;&ncy; &icy;&lcy;&icy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &rcy;&acy;&zcy;, &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ycy;&iecy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ocy;&mcy; &pcy;&ocy;&rcy;&yacy;&dcy;&kcy;&iecy;. &IEcy;&scy;&lcy;&icy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ycy;  <code>--task=&lt;task&gt;</code>  &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ycy;, &tcy;&ocy; &rcy;&acy;&scy;&scy;&mcy;&acy;&tcy;&rcy;&icy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &zcy;&acy;&dcy;&acy;&chcy;&icy;, &vcy; &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy;  <code>maintenance.&lt;task&gt;.enabled</code>  &ncy;&acy;&scy;&tcy;&rcy;&ocy;&iecy;&ncy; &kcy;&acy;&kcy;  <code>true</code> . &Scy;&pcy;&icy;&scy;&ocy;&kcy; &dcy;&ocy;&pcy;&ucy;&scy;&tcy;&icy;&mcy;&ycy;&khcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&jcy;  <code>&lt;task&gt;</code>  &scy;&mcy;. &vcy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy;  <code>TASKS</code> .</span></p> </dd> <dt id="Documentation/git-maintenance.txt---schedulerautocrontabsystemd-timerlaunchctlschtasks"><span data-i18n="3090c3e6a0a03d215ed9e1177172daeffa0c55aeb9f4761d857b6f216fd599ac/22" data-source="--scheduler=auto|crontab|systemd-timer|launchctl|schtasks" onmousemove="i18n(this)">--scheduler=auto|crontab|systemd-timer|launchctl|schtasks</span></dt> <dd> <p><span data-i18n="f132cfa7855185c3868c94ef8f5760954a2a0eb822a68dabd37c7135b8675e55/ae" data-source="When combined with the &lt;code&gt;start&lt;/code&gt; subcommand, specify the scheduler for running the hourly, daily and weekly executions of &lt;code&gt;git maintenance run&lt;/code&gt;. Possible values for &lt;code&gt;&amp;lt;scheduler&amp;gt;&lt;/code&gt; are &lt;code&gt;auto&lt;/code&gt;, &lt;code&gt;crontab&lt;/code&gt; (POSIX), &lt;code&gt;systemd-timer&lt;/code&gt; (Linux), &lt;code&gt;launchctl&lt;/code&gt; (macOS), and &lt;code&gt;schtasks&lt;/code&gt; (Windows). When &lt;code&gt;auto&lt;/code&gt; is specified, the appropriate platform-specific scheduler is used; on Linux, &lt;code&gt;systemd-timer&lt;/code&gt; is used if available, otherwise &lt;code&gt;crontab&lt;/code&gt;. Default is &lt;code&gt;auto&lt;/code&gt;." onmousemove="i18n(this)">&Vcy; &scy;&ocy;&chcy;&iecy;&tcy;&acy;&ncy;&icy;&icy; &scy; &pcy;&ocy;&dcy;&kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ocy;&jcy;  <code>start</code>  &ucy;&kcy;&acy;&zhcy;&icy;&tcy;&iecy; &pcy;&lcy;&acy;&ncy;&icy;&rcy;&ocy;&vcy;&shchcy;&icy;&kcy; &dcy;&lcy;&yacy; &iecy;&zhcy;&iecy;&chcy;&acy;&scy;&ncy;&ocy;&gcy;&ocy;, &iecy;&zhcy;&iecy;&dcy;&ncy;&iecy;&vcy;&ncy;&ocy;&gcy;&ocy; &icy; &iecy;&zhcy;&iecy;&ncy;&iecy;&dcy;&iecy;&lcy;&softcy;&ncy;&ocy;&gcy;&ocy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy;  <code>git maintenance run</code> . &Vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ycy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy;  <code>&lt;scheduler&gt;</code> :  <code>auto</code> ,  <code>crontab</code>  (POSIX),  <code>systemd-timer</code>  (Linux),  <code>launchctl</code>  (macOS) &icy;  <code>schtasks</code>  (Windows). &IEcy;&scy;&lcy;&icy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;  <code>auto</code> , &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &scy;&ocy;&ocy;&tcy;&vcy;&iecy;&tcy;&scy;&tcy;&vcy;&ucy;&yucy;&shchcy;&icy;&jcy; &pcy;&lcy;&acy;&ncy;&icy;&rcy;&ocy;&vcy;&shchcy;&icy;&kcy; &dcy;&lcy;&yacy; &kcy;&ocy;&ncy;&kcy;&rcy;&iecy;&tcy;&ncy;&ocy;&jcy; &pcy;&lcy;&acy;&tcy;&fcy;&ocy;&rcy;&mcy;&ycy;; &vcy; Linux &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy;  <code>systemd-timer</code> , &iecy;&scy;&lcy;&icy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&iecy;&ncy;, &vcy; &pcy;&rcy;&ocy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy;  <code>crontab</code> . &Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &mdash;  <code>auto</code> .</span></p> </dd> </dl> </div> </div> <h2 class="text-body-emphasis"  id="_troubleshooting"><span data-i18n="c3af076f92c5ed8dcb0d0b0d36dd120bc31b68264efea96cf8019ca19f1c13a3/29" data-source="Troubleshooting" onmousemove="i18n(this)">Troubleshooting</span></h2> <div> <p><span data-i18n="fa38166d840eb04c1b11025006cceb23a91effc0999652ac828d6f28e9295a31/92" data-source="The &lt;code&gt;git maintenance&lt;/code&gt; command is designed to simplify the repository maintenance patterns while minimizing user wait time during Git commands. A variety of configuration options are available to allow customizing this process. The default maintenance options focus on operations that complete quickly, even on large repositories." onmousemove="i18n(this)">&Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>git maintenance</code>  &pcy;&rcy;&iecy;&dcy;&ncy;&acy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&acy; &dcy;&lcy;&yacy; &ucy;&pcy;&rcy;&ocy;&shchcy;&iecy;&ncy;&icy;&yacy; &shcy;&acy;&bcy;&lcy;&ocy;&ncy;&ocy;&vcy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy; &icy; &mcy;&icy;&ncy;&icy;&mcy;&icy;&zcy;&acy;&tscy;&icy;&icy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&icy; &ocy;&zhcy;&icy;&dcy;&acy;&ncy;&icy;&yacy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy; &vcy;&ocy; &vcy;&rcy;&iecy;&mcy;&yacy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;  Git . &Dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy; &rcy;&acy;&zcy;&lcy;&icy;&chcy;&ncy;&ycy;&iecy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;, &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&yucy;&shchcy;&icy;&iecy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&icy;&tcy;&softcy; &ecy;&tcy;&ocy;&tcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;. &Pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &ocy;&rcy;&icy;&iecy;&ncy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ycy; &ncy;&acy; &ocy;&pcy;&iecy;&rcy;&acy;&tscy;&icy;&icy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy; &bcy;&ycy;&scy;&tcy;&rcy;&ocy;, &dcy;&acy;&zhcy;&iecy; &vcy; &bcy;&ocy;&lcy;&softcy;&shcy;&icy;&khcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;&khcy;.</span></p> <p><span data-i18n="243005b5f3bd190f48273a8985d8f73679ecd05a3dd12b1bdc179c9791eb5804/26" data-source="Users may find some cases where scheduled maintenance tasks do not run as frequently as intended. Each &lt;code&gt;git maintenance run&lt;/code&gt; command takes a lock on the repository&amp;rsquo;s object database, and this prevents other concurrent &lt;code&gt;git maintenance run&lt;/code&gt; commands from running on the same repository. Without this safeguard, competing processes could leave the repository in an unpredictable state." onmousemove="i18n(this)">&Vcy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &scy;&lcy;&ucy;&chcy;&acy;&yacy;&khcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&icy; &mcy;&ocy;&gcy;&ucy;&tcy; &scy;&tcy;&ocy;&lcy;&kcy;&ncy;&ucy;&tcy;&softcy;&scy;&yacy; &scy; &scy;&lcy;&ucy;&chcy;&acy;&yacy;&mcy;&icy;, &kcy;&ocy;&gcy;&dcy;&acy; &zcy;&acy;&pcy;&lcy;&acy;&ncy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&iecy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy; &ncy;&iecy; &tcy;&acy;&kcy; &chcy;&acy;&scy;&tcy;&ocy;, &kcy;&acy;&kcy; &pcy;&rcy;&iecy;&dcy;&pcy;&ocy;&lcy;&acy;&gcy;&acy;&lcy;&ocy;&scy;&softcy;. &Kcy;&acy;&zhcy;&dcy;&acy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>git maintenance run</code>  &bcy;&lcy;&ocy;&kcy;&icy;&rcy;&ucy;&iecy;&tcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ncy;&ucy;&yucy; &bcy;&acy;&zcy;&ucy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;, &icy; &ecy;&tcy;&ocy; &pcy;&rcy;&iecy;&dcy;&ocy;&tcy;&vcy;&rcy;&acy;&shchcy;&acy;&iecy;&tcy; &pcy;&acy;&rcy;&acy;&lcy;&lcy;&iecy;&lcy;&softcy;&ncy;&ycy;&jcy; &zcy;&acy;&pcy;&ucy;&scy;&kcy; &dcy;&rcy;&ucy;&gcy;&icy;&khcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;  <code>git maintenance run</code>  &vcy; &tcy;&ocy;&mcy; &zhcy;&iecy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;. &Bcy;&iecy;&zcy; &ecy;&tcy;&ocy;&jcy; &zcy;&acy;&shchcy;&icy;&tcy;&ycy; &kcy;&ocy;&ncy;&kcy;&ucy;&rcy;&icy;&rcy;&ucy;&yucy;&shchcy;&icy;&iecy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ycy; &mcy;&ocy;&gcy;&ucy;&tcy; &pcy;&rcy;&icy;&vcy;&iecy;&scy;&tcy;&icy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy; &vcy; &ncy;&iecy;&pcy;&rcy;&iecy;&dcy;&scy;&kcy;&acy;&zcy;&ucy;&iecy;&mcy;&ocy;&iecy; &scy;&ocy;&scy;&tcy;&ocy;&yacy;&ncy;&icy;&iecy;.</span></p> <p><span data-i18n="94213b24de89ceb294a45408db9888639bcf7bf0c52ebc3b1bb07cc4469184ed/e1" data-source="The background maintenance schedule runs &lt;code&gt;git maintenance run&lt;/code&gt; processes on an hourly basis. Each run executes the &amp;quot;hourly&amp;quot; tasks. At midnight, that process also executes the &amp;quot;daily&amp;quot; tasks. At midnight on the first day of the week, that process also executes the &amp;quot;weekly&amp;quot; tasks. A single process iterates over each registered repository, performing the scheduled tasks for that frequency. Depending on the number of registered repositories and their sizes, this process may take longer than an hour. In this case, multiple &lt;code&gt;git maintenance run&lt;/code&gt; commands may run on the same repository at the same time, colliding on the object database lock. This results in one of the two tasks not running." onmousemove="i18n(this)">&Gcy;&rcy;&acy;&fcy;&icy;&kcy; &fcy;&ocy;&ncy;&ocy;&vcy;&ocy;&gcy;&ocy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;&ycy;  <code>git maintenance run</code>  &iecy;&zhcy;&iecy;&chcy;&acy;&scy;&ncy;&ocy;. &Pcy;&rcy;&icy; &kcy;&acy;&zhcy;&dcy;&ocy;&mcy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&iecy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy; &zcy;&acy;&dcy;&acy;&chcy;&icy;  &quot;hourly&quot; . &Vcy; &pcy;&ocy;&lcy;&ncy;&ocy;&chcy;&softcy; &ecy;&tcy;&ocy;&tcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &tcy;&acy;&kcy;&zhcy;&iecy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy; &zcy;&acy;&dcy;&acy;&chcy;&icy;  &quot;daily&quot; . &Vcy; &pcy;&ocy;&lcy;&ncy;&ocy;&chcy;&softcy; &pcy;&iecy;&rcy;&vcy;&ocy;&gcy;&ocy; &dcy;&ncy;&yacy; &ncy;&iecy;&dcy;&iecy;&lcy;&icy; &ecy;&tcy;&ocy;&tcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &tcy;&acy;&kcy;&zhcy;&iecy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy; &zcy;&acy;&dcy;&acy;&chcy;&icy;  &quot;weekly&quot; . &Ocy;&dcy;&icy;&ncy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &pcy;&iecy;&rcy;&iecy;&bcy;&icy;&rcy;&acy;&iecy;&tcy; &kcy;&acy;&zhcy;&dcy;&ycy;&jcy; &zcy;&acy;&rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&jcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&jcy;, &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&yacy; &zcy;&acy;&pcy;&lcy;&acy;&ncy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&iecy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &scy; &ecy;&tcy;&ocy;&jcy; &chcy;&acy;&scy;&tcy;&ocy;&tcy;&ocy;&jcy;. &Vcy; &zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy;&scy;&tcy;&icy; &ocy;&tcy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&acy; &zcy;&acy;&rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&khcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&iecy;&vcy; &icy; &icy;&khcy; &rcy;&acy;&zcy;&mcy;&iecy;&rcy;&ocy;&vcy; &ecy;&tcy;&ocy;&tcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &mcy;&ocy;&zhcy;&iecy;&tcy; &zcy;&acy;&ncy;&yacy;&tcy;&softcy; &bcy;&ocy;&lcy;&softcy;&shcy;&iecy; &chcy;&acy;&scy;&acy;. &Vcy; &ecy;&tcy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ocy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;  <code>git maintenance run</code>  &mcy;&ocy;&gcy;&ucy;&tcy; &ocy;&dcy;&ncy;&ocy;&vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ocy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&tcy;&softcy;&scy;&yacy; &vcy; &ocy;&dcy;&ncy;&ocy;&mcy; &icy; &tcy;&ocy;&mcy; &zhcy;&iecy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;, &chcy;&tcy;&ocy; &pcy;&rcy;&icy;&vcy;&ocy;&dcy;&icy;&tcy; &kcy; &kcy;&ocy;&ncy;&fcy;&lcy;&icy;&kcy;&tcy;&ucy; &pcy;&rcy;&icy; &bcy;&lcy;&ocy;&kcy;&icy;&rcy;&ocy;&vcy;&kcy;&iecy; &bcy;&acy;&zcy;&ycy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy;. &Ecy;&tcy;&ocy; &pcy;&rcy;&icy;&vcy;&ocy;&dcy;&icy;&tcy; &kcy; &tcy;&ocy;&mcy;&ucy;, &chcy;&tcy;&ocy; &ocy;&dcy;&ncy;&acy; &icy;&zcy; &dcy;&vcy;&ucy;&khcy; &zcy;&acy;&dcy;&acy;&chcy; &ncy;&iecy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy;.</span></p> <p><span data-i18n="85b714e637e0207cf3029bae39aa4fd732b591793705b83fefeaa4e1d4e424dc/13" data-source="If you find that some maintenance windows are taking longer than one hour to complete, then consider reducing the complexity of your maintenance tasks. For example, the &lt;code&gt;gc&lt;/code&gt; task is much slower than the &lt;code&gt;incremental-repack&lt;/code&gt; task. However, this comes at a cost of a slightly larger object database. Consider moving more expensive tasks to be run less frequently." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &vcy;&ycy; &ocy;&bcy;&ncy;&acy;&rcy;&ucy;&zhcy;&icy;&tcy;&iecy;, &chcy;&tcy;&ocy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &ocy;&kcy;&ncy;&acy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &zcy;&acy;&ncy;&icy;&mcy;&acy;&yucy;&tcy; &bcy;&ocy;&lcy;&softcy;&shcy;&iecy; &chcy;&acy;&scy;&acy;, &rcy;&acy;&scy;&scy;&mcy;&ocy;&tcy;&rcy;&icy;&tcy;&iecy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&softcy; &scy;&ncy;&icy;&zhcy;&iecy;&ncy;&icy;&yacy; &scy;&lcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&icy; &zcy;&acy;&dcy;&acy;&chcy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy;. &Ncy;&acy;&pcy;&rcy;&icy;&mcy;&iecy;&rcy;, &zcy;&acy;&dcy;&acy;&chcy;&acy;  <code>gc</code>  &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&scy;&yacy; &ncy;&acy;&mcy;&ncy;&ocy;&gcy;&ocy; &mcy;&iecy;&dcy;&lcy;&iecy;&ncy;&ncy;&iecy;&iecy;, &chcy;&iecy;&mcy; &zcy;&acy;&dcy;&acy;&chcy;&acy;  <code>incremental-repack</code> . &Ocy;&dcy;&ncy;&acy;&kcy;&ocy; &zcy;&acy; &ecy;&tcy;&ocy; &pcy;&rcy;&icy;&khcy;&ocy;&dcy;&icy;&tcy;&scy;&yacy; &pcy;&lcy;&acy;&tcy;&icy;&tcy;&softcy; &ncy;&iecy;&mcy;&ncy;&ocy;&gcy;&ocy; &bcy;&ocy;&lcy;&softcy;&shcy;&iecy;&jcy; &bcy;&acy;&zcy;&ocy;&jcy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy;. &Rcy;&acy;&scy;&scy;&mcy;&ocy;&tcy;&rcy;&icy;&tcy;&iecy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&softcy; &pcy;&iecy;&rcy;&iecy;&ncy;&ocy;&scy;&acy; &bcy;&ocy;&lcy;&iecy;&iecy; &rcy;&iecy;&scy;&ucy;&rcy;&scy;&ocy;&iecy;&mcy;&kcy;&icy;&khcy; &zcy;&acy;&dcy;&acy;&chcy; &ncy;&acy; &mcy;&iecy;&ncy;&iecy;&iecy; &chcy;&acy;&scy;&tcy;&ocy;&iecy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&iecy;.</span></p> <p><span data-i18n="8255194f5fc61eb40d38c0dfbc2099b9f0db9d042add0184303ae2eac265af0b/6c" data-source="Expert users may consider scheduling their own maintenance tasks using a different schedule than is available through &lt;code&gt;git maintenance start&lt;/code&gt; and Git configuration options. These users should be aware of the object database lock and how concurrent &lt;code&gt;git maintenance run&lt;/code&gt; commands behave. Further, the &lt;code&gt;git gc&lt;/code&gt; command should not be combined with &lt;code&gt;git maintenance run&lt;/code&gt; commands. &lt;code&gt;git gc&lt;/code&gt; modifies the object database but does not take the lock in the same way as &lt;code&gt;git maintenance run&lt;/code&gt;. If possible, use &lt;code&gt;git maintenance run --task=gc&lt;/code&gt; instead of &lt;code&gt;git gc&lt;/code&gt;." onmousemove="i18n(this)">&Ocy;&pcy;&ycy;&tcy;&ncy;&ycy;&iecy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&icy; &mcy;&ocy;&gcy;&ucy;&tcy; &rcy;&acy;&scy;&scy;&mcy;&ocy;&tcy;&rcy;&iecy;&tcy;&softcy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;&scy;&tcy;&softcy; &pcy;&lcy;&acy;&ncy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &scy;&ocy;&bcy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ycy;&khcy; &zcy;&acy;&dcy;&acy;&chcy; &pcy;&ocy; &tcy;&iecy;&khcy;&ncy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&mcy;&ucy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yucy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yacy; &rcy;&acy;&scy;&pcy;&icy;&scy;&acy;&ncy;&icy;&iecy;, &ocy;&tcy;&lcy;&icy;&chcy;&ncy;&ocy;&iecy; &ocy;&tcy; &tcy;&ocy;&gcy;&ocy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&iecy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ocy; &vcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&acy;&khcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>git maintenance start</code>  &icy;  Git . &Ecy;&tcy;&icy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&icy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ycy; &zcy;&ncy;&acy;&tcy;&softcy; &ocy; &bcy;&lcy;&ocy;&kcy;&icy;&rcy;&ocy;&vcy;&kcy;&iecy; &bcy;&acy;&zcy;&ycy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy; &icy; &ocy; &tcy;&ocy;&mcy;, &kcy;&acy;&kcy; &vcy;&iecy;&dcy;&ucy;&tcy; &scy;&iecy;&bcy;&yacy; &ocy;&dcy;&ncy;&ocy;&vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&iecy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>git maintenance run</code> . &Kcy;&rcy;&ocy;&mcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy;  <code>git gc</code>  &ncy;&iecy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &ocy;&bcy;&hardcy;&iecy;&dcy;&icy;&ncy;&yacy;&tcy;&softcy; &scy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;&mcy;&icy;  <code>git maintenance run</code> .  <code>git gc</code>  &icy;&zcy;&mcy;&iecy;&ncy;&yacy;&iecy;&tcy; &bcy;&acy;&zcy;&ucy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy;, &ncy;&ocy; &ncy;&iecy; &pcy;&rcy;&icy;&ncy;&icy;&mcy;&acy;&iecy;&tcy; &bcy;&lcy;&ocy;&kcy;&icy;&rcy;&ocy;&vcy;&kcy;&ucy; &tcy;&acy;&kcy; &zhcy;&iecy;, &kcy;&acy;&kcy;  <code>git maintenance run</code> . &IEcy;&scy;&lcy;&icy; &vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ocy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy;  <code>git maintenance run --task=gc</code>  &vcy;&mcy;&iecy;&scy;&tcy;&ocy;  <code>git gc</code> .</span></p> <p><span data-i18n="bc5e6fab75ea4edc6e065adf079f90db0ec8a72a215869181f3d43184ffbffc1/ce" data-source="The following sections describe the mechanisms put in place to run background maintenance by &lt;code&gt;git maintenance start&lt;/code&gt; and how to customize them." onmousemove="i18n(this)">&Vcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&khcy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&acy;&khcy; &ocy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&yucy;&tcy;&scy;&yacy; &mcy;&iecy;&khcy;&acy;&ncy;&icy;&zcy;&mcy;&ycy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&mcy;&ycy;&iecy; &dcy;&lcy;&yacy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy; &fcy;&ocy;&ncy;&ocy;&vcy;&ocy;&gcy;&ocy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>git maintenance start</code> , &icy; &scy;&pcy;&ocy;&scy;&ocy;&bcy;&ycy; &icy;&khcy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&icy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_background_maintenance_on_posix_systems"><span data-i18n="3dacf6a5268ea14e1f5c80fe870c0b9c630b4c26335afc5a5cdab3c843014b02/0d" data-source="Background maintenance on posix systems" onmousemove="i18n(this)">&Fcy;&ocy;&ncy;&ocy;&vcy;&ocy;&iecy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&iecy; &scy;&icy;&scy;&tcy;&iecy;&mcy; posix</span></h2> <div> <p><span data-i18n="e2e68df76748f313beaca18a22cbf011c87631546547b744aadea13e0b727f3a/be" data-source="The standard mechanism for scheduling background tasks on POSIX systems is cron(8). This tool executes commands based on a given schedule. The current list of user-scheduled tasks can be found by running &lt;code&gt;crontab -l&lt;/code&gt;. The schedule written by &lt;code&gt;git maintenance start&lt;/code&gt; is similar to this:" onmousemove="i18n(this)">&Scy;&tcy;&acy;&ncy;&dcy;&acy;&rcy;&tcy;&ncy;&ycy;&mcy; &mcy;&iecy;&khcy;&acy;&ncy;&icy;&zcy;&mcy;&ocy;&mcy; &pcy;&lcy;&acy;&ncy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &fcy;&ocy;&ncy;&ocy;&vcy;&ycy;&khcy; &zcy;&acy;&dcy;&acy;&chcy; &vcy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&acy;&khcy; POSIX &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; cron(8). &Ecy;&tcy;&ocy;&tcy; &icy;&ncy;&scy;&tcy;&rcy;&ucy;&mcy;&iecy;&ncy;&tcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &pcy;&ocy; &zcy;&acy;&dcy;&acy;&ncy;&ncy;&ocy;&mcy;&ucy; &rcy;&acy;&scy;&pcy;&icy;&scy;&acy;&ncy;&icy;&yucy;. &Tcy;&iecy;&kcy;&ucy;&shchcy;&icy;&jcy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &zcy;&acy;&pcy;&lcy;&acy;&ncy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&khcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&iecy;&mcy; &zcy;&acy;&dcy;&acy;&chcy; &mcy;&ocy;&zhcy;&ncy;&ocy; &ncy;&acy;&jcy;&tcy;&icy;, &zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&vcy;  <code>crontab -l</code> . &Rcy;&acy;&scy;&pcy;&icy;&scy;&acy;&ncy;&icy;&iecy;, &ncy;&acy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ocy;&iecy;  <code>git maintenance start</code> , &pcy;&ocy;&khcy;&ocy;&zhcy;&iecy; &ncy;&acy; &ecy;&tcy;&ocy;:</span></p> <div> <div> <pre class="hljs language-perl"><span class="hljs-comment" title="# BEGIN GIT MAINTENANCE SCHEDULE"># &Ncy;&Acy;&CHcy;&Acy;&Tcy;&SOFTcy; &Gcy;&Rcy;&Acy;&Fcy;&Icy;&Kcy; &Ocy;&Bcy;&Scy;&Lcy;&Ucy;&ZHcy;&Icy;&Vcy;&Acy;&Ncy;&Icy;&YAcy; GIT</span>
<span class="hljs-comment" title="# The following schedule was created by Git"># &Scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&iecy; &rcy;&acy;&scy;&pcy;&icy;&scy;&acy;&ncy;&icy;&iecy; &bcy;&ycy;&lcy;&ocy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&ocy; Git</span>
<span class="hljs-comment" title="# Any edits made in this region might be"># &Lcy;&yucy;&bcy;&ycy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy;, &scy;&dcy;&iecy;&lcy;&acy;&ncy;&ncy;&ycy;&iecy; &vcy; &ecy;&tcy;&ocy;&mcy; &rcy;&iecy;&gcy;&icy;&ocy;&ncy;&iecy;, &mcy;&ocy;&gcy;&ucy;&tcy; &bcy;&ycy;&tcy;&softcy;</span>
<span class="hljs-comment" title="# replaced in the future by a Git command."># &zcy;&acy;&mcy;&iecy;&ncy;&iecy;&ncy; &vcy; &bcy;&ucy;&dcy;&ucy;&shchcy;&iecy;&mcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ocy;&jcy; Git.</span>

<span class="hljs-number">0</span> <span class="hljs-number">1</span>-<span class="hljs-number">23</span> * * * <span class="hljs-string">&quot;/&lt;path&gt;/git&quot;</span> --<span class="hljs-keyword">exec</span>-path=<span class="hljs-string">&quot;/&lt;path&gt;&quot;</span> <span class="hljs-keyword">for</span>-<span class="hljs-keyword">each</span>-repo --config=maintenance.repo maintenance run --schedule=hourly
<span class="hljs-number">0</span> <span class="hljs-number">0</span> * * <span class="hljs-number">1</span>-<span class="hljs-number">6</span> <span class="hljs-string">&quot;/&lt;path&gt;/git&quot;</span> --<span class="hljs-keyword">exec</span>-path=<span class="hljs-string">&quot;/&lt;path&gt;&quot;</span> <span class="hljs-keyword">for</span>-<span class="hljs-keyword">each</span>-repo --config=maintenance.repo maintenance run --schedule=daily
<span class="hljs-number">0</span> <span class="hljs-number">0</span> * * <span class="hljs-number">0</span> <span class="hljs-string">&quot;/&lt;path&gt;/git&quot;</span> --<span class="hljs-keyword">exec</span>-path=<span class="hljs-string">&quot;/&lt;path&gt;&quot;</span> <span class="hljs-keyword">for</span>-<span class="hljs-keyword">each</span>-repo --config=maintenance.repo maintenance run --schedule=weekly

<span class="hljs-comment" title="# END GIT MAINTENANCE SCHEDULE"># &Kcy;&Ocy;&Ncy;&IEcy;&TScy; &Gcy;&Rcy;&Acy;&Fcy;&Icy;&Kcy;&Acy; &Ocy;&Bcy;&Scy;&Lcy;&Ucy;&ZHcy;&Icy;&Vcy;&Acy;&Ncy;&Icy;&YAcy; GIT</span></pre> </div> </div> <p><span data-i18n="e3e2cec5ea8bcd5487decda1416a7d6bb9c5e9d7fac17ded6f7b956afecb44eb/ce" data-source="The comments are used as a region to mark the schedule as written by Git. Any modifications within this region will be completely deleted by &lt;code&gt;git maintenance stop&lt;/code&gt; or overwritten by &lt;code&gt;git maintenance start&lt;/code&gt;." onmousemove="i18n(this)">&Kcy;&ocy;&mcy;&mcy;&iecy;&ncy;&tcy;&acy;&rcy;&icy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy;&scy;&yacy; &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &rcy;&iecy;&gcy;&icy;&ocy;&ncy;&acy; &dcy;&lcy;&yacy; &ocy;&bcy;&ocy;&zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &rcy;&acy;&scy;&pcy;&icy;&scy;&acy;&ncy;&icy;&yacy;, &ncy;&acy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ocy;&gcy;&ocy; Git. &Lcy;&yucy;&bcy;&ycy;&iecy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy; &ecy;&tcy;&ocy;&mcy; &rcy;&iecy;&gcy;&icy;&ocy;&ncy;&iecy; &bcy;&ucy;&dcy;&ucy;&tcy; &pcy;&ocy;&lcy;&ncy;&ocy;&scy;&tcy;&softcy;&yucy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&ycy;  <code>git maintenance stop</code>  &icy;&lcy;&icy; &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&icy;&scy;&acy;&ncy;&ycy;  <code>git maintenance start</code> .</span></p> <p><span data-i18n="593534bca47171b3add012577b64e31552073d3e9c588091ab9b7a39e842fe12/eb" data-source="The &lt;code&gt;crontab&lt;/code&gt; entry specifies the full path of the &lt;code&gt;git&lt;/code&gt; executable to ensure that the executed &lt;code&gt;git&lt;/code&gt; command is the same one with which &lt;code&gt;git maintenance start&lt;/code&gt; was issued independent of &lt;code&gt;PATH&lt;/code&gt;. If the same user runs &lt;code&gt;git maintenance start&lt;/code&gt; with multiple Git executables, then only the latest executable is used." onmousemove="i18n(this)">&Zcy;&acy;&pcy;&icy;&scy;&softcy;  <code>crontab</code>  &ucy;&kcy;&acy;&zcy;&ycy;&vcy;&acy;&iecy;&tcy; &pcy;&ocy;&lcy;&ncy;&ycy;&jcy; &pcy;&ucy;&tcy;&softcy; &kcy; &icy;&scy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&mcy;&ocy;&mcy;&ucy; &fcy;&acy;&jcy;&lcy;&ucy;  <code>git</code> , &chcy;&tcy;&ocy;&bcy;&ycy; &gcy;&acy;&rcy;&acy;&ncy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy;, &chcy;&tcy;&ocy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&ncy;&acy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>git</code>  &scy;&ocy;&vcy;&pcy;&acy;&dcy;&acy;&iecy;&tcy; &scy; &tcy;&ocy;&jcy;, &scy; &kcy;&ocy;&tcy;&ocy;&rcy;&ocy;&jcy;  <code>git maintenance start</code>  &bcy;&ycy;&lcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy; &ncy;&iecy;&zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy; &ocy;&tcy;  <code>PATH</code> . &IEcy;&scy;&lcy;&icy; &ocy;&dcy;&icy;&ncy; &icy; &tcy;&ocy;&tcy; &zhcy;&iecy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;  <code>git maintenance start</code>  &scy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&icy;&mcy;&icy; &icy;&scy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&mcy;&ycy;&mcy;&icy; &fcy;&acy;&jcy;&lcy;&acy;&mcy;&icy;  Git , &tcy;&ocy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &pcy;&ocy;&scy;&lcy;&iecy;&dcy;&ncy;&icy;&jcy; &icy;&scy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&mcy;&ycy;&jcy; &fcy;&acy;&jcy;&lcy;.</span></p> <p><span data-i18n="1280084a98fe456613d26501507f996315fca754dc9c4a29aded6d3cde053141/89" data-source="These commands use &lt;code&gt;git for-each-repo --config=maintenance.repo&lt;/code&gt; to run &lt;code&gt;git maintenance run --schedule=&amp;lt;frequency&amp;gt;&lt;/code&gt; on each repository listed in the multi-valued &lt;code&gt;maintenance.repo&lt;/code&gt; config option. These are typically loaded from the user-specific global config. The &lt;code&gt;git maintenance&lt;/code&gt; process then determines which maintenance tasks are configured to run on each repository with each &lt;code&gt;&amp;lt;frequency&amp;gt;&lt;/code&gt; using the &lt;code&gt;maintenance.&amp;lt;task&amp;gt;.schedule&lt;/code&gt; config options. These values are loaded from the global or repository config values." onmousemove="i18n(this)">&Ecy;&tcy;&icy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yucy;&tcy;  <code>git for-each-repo --config=maintenance.repo</code>  &dcy;&lcy;&yacy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;  <code>git maintenance run --schedule=&lt;frequency&gt;</code>  &vcy; &kcy;&acy;&zhcy;&dcy;&ocy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy;, &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ocy;&mcy; &vcy; &mcy;&ncy;&ocy;&gcy;&ocy;&zcy;&ncy;&acy;&chcy;&ncy;&ocy;&mcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&iecy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>maintenance.repo</code> . &Ocy;&bcy;&ycy;&chcy;&ncy;&ocy; &ocy;&ncy;&icy; &zcy;&acy;&gcy;&rcy;&ucy;&zhcy;&acy;&yucy;&tcy;&scy;&yacy; &icy;&zcy; &gcy;&lcy;&ocy;&bcy;&acy;&lcy;&softcy;&ncy;&ocy;&jcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;. &Zcy;&acy;&tcy;&iecy;&mcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy;  <code>git maintenance</code>  &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy;, &kcy;&acy;&kcy;&icy;&iecy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&iecy;&ncy;&ycy; &dcy;&lcy;&yacy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &vcy; &kcy;&acy;&zhcy;&dcy;&ocy;&mcy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&icy; &scy; &kcy;&acy;&zhcy;&dcy;&ycy;&mcy;  <code>&lt;frequency&gt;</code> , &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&yacy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;&ycy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>maintenance.&lt;task&gt;.schedule</code> . &Ecy;&tcy;&icy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &zcy;&acy;&gcy;&rcy;&ucy;&zhcy;&acy;&yucy;&tcy;&scy;&yacy; &icy;&zcy; &gcy;&lcy;&ocy;&bcy;&acy;&lcy;&softcy;&ncy;&ycy;&khcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&jcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &icy;&lcy;&icy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&jcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &rcy;&iecy;&pcy;&ocy;&zcy;&icy;&tcy;&ocy;&rcy;&icy;&yacy;.</span></p> <p><span data-i18n="36ad88bc9d929b5f5f08053d16493b98e5f3256dc9998bc900e7c022504ae3f4/71" data-source="If the config values are insufficient to achieve your desired background maintenance schedule, then you can create your own schedule. If you run &lt;code&gt;crontab -e&lt;/code&gt;, then an editor will load with your user-specific &lt;code&gt;cron&lt;/code&gt; schedule. In that editor, you can add your own schedule lines. You could start by adapting the default schedule listed earlier, or you could read the crontab(5) documentation for advanced scheduling techniques. Please do use the full path and &lt;code&gt;--exec-path&lt;/code&gt; techniques from the default schedule to ensure you are executing the correct binaries in your schedule." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&jcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &ncy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&tcy;&ocy;&chcy;&ncy;&ocy; &dcy;&lcy;&yacy; &dcy;&ocy;&scy;&tcy;&icy;&zhcy;&iecy;&ncy;&icy;&yacy; &zhcy;&iecy;&lcy;&acy;&iecy;&mcy;&ocy;&gcy;&ocy; &rcy;&acy;&scy;&pcy;&icy;&scy;&acy;&ncy;&icy;&yacy; &fcy;&ocy;&ncy;&ocy;&vcy;&ocy;&gcy;&ocy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy;, &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &scy;&ocy;&zcy;&dcy;&acy;&tcy;&softcy; &scy;&ocy;&bcy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ocy;&iecy; &rcy;&acy;&scy;&pcy;&icy;&scy;&acy;&ncy;&icy;&iecy;. &IEcy;&scy;&lcy;&icy; &vcy;&ycy; &zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy;&iecy;  <code>crontab -e</code>  , &tcy;&ocy; &zcy;&acy;&gcy;&rcy;&ucy;&zcy;&icy;&tcy;&scy;&yacy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy; &scy; &vcy;&acy;&shcy;&icy;&mcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&mcy; &rcy;&acy;&scy;&pcy;&icy;&scy;&acy;&ncy;&icy;&iecy;&mcy;  <code>cron</code> . &Vcy; &ecy;&tcy;&ocy;&mcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy;&iecy; &vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&tcy;&softcy; &scy;&vcy;&ocy;&icy; &scy;&ocy;&bcy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ycy;&iecy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &gcy;&rcy;&acy;&fcy;&icy;&kcy;&acy;. &Vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &ncy;&acy;&chcy;&acy;&tcy;&softcy; &scy; &acy;&dcy;&acy;&pcy;&tcy;&acy;&tscy;&icy;&icy; &rcy;&acy;&scy;&pcy;&icy;&scy;&acy;&ncy;&icy;&yacy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;, &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ncy;&ocy;&gcy;&ocy; &rcy;&acy;&ncy;&iecy;&iecy;, &icy;&lcy;&icy; &pcy;&rcy;&ocy;&chcy;&icy;&tcy;&acy;&tcy;&softcy; &dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;&tscy;&icy;&yucy; crontab(5), &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&zcy;&ncy;&acy;&tcy;&softcy; &ocy; &rcy;&acy;&scy;&shcy;&icy;&rcy;&iecy;&ncy;&ncy;&ycy;&khcy; &mcy;&iecy;&tcy;&ocy;&dcy;&acy;&khcy; &pcy;&lcy;&acy;&ncy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;. &Pcy;&ocy;&zhcy;&acy;&lcy;&ucy;&jcy;&scy;&tcy;&acy;, &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&jcy;&tcy;&iecy; &pcy;&ocy;&lcy;&ncy;&ycy;&jcy; &pcy;&ucy;&tcy;&softcy; &icy; &mcy;&iecy;&tcy;&ocy;&dcy;&ycy;  <code>--exec-path</code>  &icy;&zcy; &rcy;&acy;&scy;&pcy;&icy;&scy;&acy;&ncy;&icy;&yacy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;, &chcy;&tcy;&ocy;&bcy;&ycy; &ucy;&bcy;&iecy;&dcy;&icy;&tcy;&softcy;&scy;&yacy;, &chcy;&tcy;&ocy; &vcy;&ycy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&tcy;&iecy; &pcy;&rcy;&acy;&vcy;&icy;&lcy;&softcy;&ncy;&ycy;&iecy; &dcy;&vcy;&ocy;&icy;&chcy;&ncy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy; &vcy; &scy;&vcy;&ocy;&iecy;&mcy; &rcy;&acy;&scy;&pcy;&icy;&scy;&acy;&ncy;&icy;&icy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_background_maintenance_on_linux_systemd_systems"><span data-i18n="3c32dddfbb0532d4adc75ae1dae38f72f3a8069e6d1715ab1472346860dcfc51/b0" data-source="Background maintenance on linux systemd systems" onmousemove="i18n(this)">&Fcy;&ocy;&ncy;&ocy;&vcy;&ocy;&iecy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&iecy; &scy;&icy;&scy;&tcy;&iecy;&mcy; Linux systemd</span></h2> <div> <p><span data-i18n="c1482b724abc0d090706c2687592e4bc6e28c5adf74ff5695e3d2daf7a062610/ea" data-source="While Linux supports &lt;code&gt;cron&lt;/code&gt;, depending on the distribution, &lt;code&gt;cron&lt;/code&gt; may be an optional package not necessarily installed. On modern Linux distributions, systemd timers are superseding it." onmousemove="i18n(this)">&KHcy;&ocy;&tcy;&yacy; Linux &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&iecy;&tcy;  <code>cron</code> , &vcy; &zcy;&acy;&vcy;&icy;&scy;&icy;&mcy;&ocy;&scy;&tcy;&icy; &ocy;&tcy; &dcy;&icy;&scy;&tcy;&rcy;&icy;&bcy;&ucy;&tcy;&icy;&vcy;&acy;  <code>cron</code>  &mcy;&ocy;&zhcy;&iecy;&tcy; &bcy;&ycy;&tcy;&softcy; &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ycy;&mcy; &pcy;&acy;&kcy;&iecy;&tcy;&ocy;&mcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &ncy;&iecy; &ocy;&bcy;&yacy;&zcy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy; &dcy;&ocy;&lcy;&zhcy;&iecy;&ncy; &bcy;&ycy;&tcy;&softcy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;. &Vcy; &scy;&ocy;&vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&ncy;&ycy;&khcy; &dcy;&icy;&scy;&tcy;&rcy;&icy;&bcy;&ucy;&tcy;&icy;&vcy;&acy;&khcy; Linux &iecy;&gcy;&ocy; &zcy;&acy;&mcy;&iecy;&ncy;&yacy;&yucy;&tcy; &tcy;&acy;&jcy;&mcy;&iecy;&rcy;&ycy; systemd.</span></p> <p><span data-i18n="6962408990e367bd5261abd3baea582a18cac0c89ee1146913085245bf54754a/12" data-source="If user systemd timers are available, they will be used as a replacement of &lt;code&gt;cron&lt;/code&gt;." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&iecy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&ncy;&ycy;&iecy; &tcy;&acy;&jcy;&mcy;&iecy;&rcy;&ycy;, &ocy;&ncy;&icy; &bcy;&ucy;&dcy;&ucy;&tcy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&softcy;&scy;&yacy; &vcy; &kcy;&acy;&chcy;&iecy;&scy;&tcy;&vcy;&iecy; &zcy;&acy;&mcy;&iecy;&ncy;&ycy;  <code>cron</code> .</span></p> <p><span data-i18n="795b210538118453272a5644b2c72c8b6e5b4d6f4bf752ead6041692c1a0671d/fd" data-source="In this case, &lt;code&gt;git maintenance start&lt;/code&gt; will create user systemd timer units and start the timers. The current list of user-scheduled tasks can be found by running &lt;code&gt;systemctl --user list-timers&lt;/code&gt;. The timers written by &lt;code&gt;git
maintenance start&lt;/code&gt; are similar to this:" onmousemove="i18n(this)">&Vcy; &ecy;&tcy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy;  <code>git maintenance start</code>  &scy;&ocy;&zcy;&dcy;&acy;&scy;&tcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&iecy; &tcy;&acy;&jcy;&mcy;&iecy;&rcy;&ycy; systemd &icy; &zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy; &tcy;&acy;&jcy;&mcy;&iecy;&rcy;&ycy;. &Tcy;&iecy;&kcy;&ucy;&shchcy;&icy;&jcy; &scy;&pcy;&icy;&scy;&ocy;&kcy; &zcy;&acy;&pcy;&lcy;&acy;&ncy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&khcy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&iecy;&mcy; &zcy;&acy;&dcy;&acy;&chcy; &mcy;&ocy;&zhcy;&ncy;&ocy; &ncy;&acy;&jcy;&tcy;&icy;, &zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&vcy;  <code>systemctl --user list-timers</code> . &Tcy;&acy;&jcy;&mcy;&iecy;&rcy;&ycy;, &ncy;&acy;&pcy;&icy;&scy;&acy;&ncy;&ncy;&ycy;&iecy;  <code>git
maintenance start</code> , &acy;&ncy;&acy;&lcy;&ocy;&gcy;&icy;&chcy;&ncy;&ycy; &ecy;&tcy;&ocy;&mcy;&ucy;:</span></p> <div> <div> <pre class="hljs language-sql">$ systemctl <span class="hljs-comment">--user list-timers</span>
NEXT                         <span class="hljs-keyword">LEFT</span>          <span class="hljs-keyword">LAST</span>                         PASSED     UNIT                         ACTIVATES
Thu <span class="hljs-number">2021</span><span class="hljs-number">-04</span><span class="hljs-number">-29</span> <span class="hljs-number">19</span>:<span class="hljs-number">00</span>:<span class="hljs-number">00</span> CEST <span class="hljs-number">42</span>min <span class="hljs-keyword">left</span>    Thu <span class="hljs-number">2021</span><span class="hljs-number">-04</span><span class="hljs-number">-29</span> <span class="hljs-number">18</span>:<span class="hljs-number">00</span>:<span class="hljs-number">11</span> CEST <span class="hljs-number">17</span>min ago  git<span class="hljs-operator">-</span>maintenance<span class="hljs-variable">@hourly</span>.timer git<span class="hljs-operator">-</span>maintenance<span class="hljs-variable">@hourly</span>.service
Fri <span class="hljs-number">2021</span><span class="hljs-number">-04</span><span class="hljs-number">-30</span> <span class="hljs-number">00</span>:<span class="hljs-number">00</span>:<span class="hljs-number">00</span> CEST <span class="hljs-number">5</span>h <span class="hljs-number">42</span>min <span class="hljs-keyword">left</span> Thu <span class="hljs-number">2021</span><span class="hljs-number">-04</span><span class="hljs-number">-29</span> <span class="hljs-number">00</span>:<span class="hljs-number">00</span>:<span class="hljs-number">11</span> CEST <span class="hljs-number">18</span>h ago    git<span class="hljs-operator">-</span>maintenance<span class="hljs-variable">@daily</span>.timer  git<span class="hljs-operator">-</span>maintenance<span class="hljs-variable">@daily</span>.service
Mon <span class="hljs-number">2021</span><span class="hljs-number">-05</span><span class="hljs-number">-03</span> <span class="hljs-number">00</span>:<span class="hljs-number">00</span>:<span class="hljs-number">00</span> CEST <span class="hljs-number">3</span> days <span class="hljs-keyword">left</span>   Mon <span class="hljs-number">2021</span><span class="hljs-number">-04</span><span class="hljs-number">-26</span> <span class="hljs-number">00</span>:<span class="hljs-number">00</span>:<span class="hljs-number">11</span> CEST <span class="hljs-number">3</span> days ago git<span class="hljs-operator">-</span>maintenance<span class="hljs-variable">@weekly</span>.timer git<span class="hljs-operator">-</span>maintenance<span class="hljs-variable">@weekly</span>.service</pre> </div> </div> <p><span data-i18n="ff9edfc8e489197215400681ded9ff6bb1d4f88b81af85c47f72402a3411fecc/20" data-source="One timer is registered for each &lt;code&gt;--schedule=&amp;lt;frequency&amp;gt;&lt;/code&gt; option." onmousemove="i18n(this)">&Dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&jcy; &ocy;&pcy;&tscy;&icy;&icy;  <code>--schedule=&lt;frequency&gt;</code>  &zcy;&acy;&rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy; &ocy;&dcy;&icy;&ncy; &tcy;&acy;&jcy;&mcy;&iecy;&rcy;.</span></p> <p><span data-i18n="63dbd7ceef148e083c2170e45fa55edf9b74945c9b7c735b321189121cb62382/f2" data-source="The definition of the systemd units can be inspected in the following files:" onmousemove="i18n(this)">&Ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&iecy;&ncy;&icy;&iecy; &mcy;&ocy;&dcy;&ucy;&lcy;&iecy;&jcy; systemd &mcy;&ocy;&zhcy;&ncy;&ocy; &pcy;&rcy;&ocy;&scy;&mcy;&ocy;&tcy;&rcy;&iecy;&tcy;&softcy; &vcy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&khcy; &fcy;&acy;&jcy;&lcy;&acy;&khcy;:</span></p> <div> <div> <pre class="hljs language-ruby">~<span class="hljs-regexp">/.config/systemd</span><span class="hljs-regexp">/user/git</span><a href="https://runebook.dev/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b39eded2daddc7d6ddd2ddd0d6f39dc7daded6c1">[email&#160;protected]</a>
~<span class="hljs-regexp">/.config/systemd</span><span class="hljs-regexp">/user/git</span><a href="https://runebook.dev/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="e1cc8c80888f95848f808f8284a1cf92849397888284">[email&#160;protected]</a>
~<span class="hljs-regexp">/.config/systemd</span><span class="hljs-regexp">/user/timers</span>.target.wants/git-maintenance<span class="hljs-variable">@hourly</span>.timer
~<span class="hljs-regexp">/.config/systemd</span><span class="hljs-regexp">/user/timers</span>.target.wants/git-maintenance<span class="hljs-variable">@daily</span>.timer
~<span class="hljs-regexp">/.config/systemd</span><span class="hljs-regexp">/user/timers</span>.target.wants/git-maintenance<span class="hljs-variable">@weekly</span>.timer</pre> </div> </div> <p><span data-i18n="4501f211b7c13b80ffc488e50c0e6fee6b0110637dfa192ae7d0daa0e5802786/74" data-source="&lt;code&gt;git maintenance start&lt;/code&gt; will overwrite these files and start the timer again with &lt;code&gt;systemctl --user&lt;/code&gt;, so any customization should be done by creating a drop-in file, i.e. a &lt;code&gt;.conf&lt;/code&gt; suffixed file in the &lt;code&gt;~/.config/systemd/user/git-maintenance@.service.d&lt;/code&gt; directory." onmousemove="i18n(this)"><code>git maintenance start</code>  &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&icy;&shcy;&iecy;&tcy; &ecy;&tcy;&icy; &fcy;&acy;&jcy;&lcy;&ycy; &icy; &scy;&ncy;&ocy;&vcy;&acy; &zcy;&acy;&pcy;&ucy;&scy;&tcy;&icy;&tcy; &tcy;&acy;&jcy;&mcy;&iecy;&rcy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy;  <code>systemctl --user</code> , &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &lcy;&yucy;&bcy;&ucy;&yucy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&ucy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&tcy;&softcy; &pcy;&ucy;&tcy;&iecy;&mcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&yacy; &vcy;&scy;&tcy;&acy;&vcy;&ncy;&ocy;&gcy;&ocy; &fcy;&acy;&jcy;&lcy;&acy;, &tcy;&ocy; &iecy;&scy;&tcy;&softcy; &fcy;&acy;&jcy;&lcy;&acy; &scy; &scy;&ucy;&fcy;&fcy;&icy;&kcy;&scy;&ocy;&mcy;  <code>.conf</code>  &vcy; &kcy;&acy;&tcy;&acy;&lcy;&ocy;&gcy;&iecy;  <code>~/.config/systemd/user/<a href="https://runebook.dev/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f7909e83da9a969e9983929996999492b7d9849285819e9492d993">[email&#160;protected]</a></code> .</span></p> <p><span data-i18n="97beb784542665876cbdf2140a616bea9c4592110772f66af455b98450f34c41/3b" data-source="&lt;code&gt;git maintenance stop&lt;/code&gt; will stop the user systemd timers and delete the above mentioned files." onmousemove="i18n(this)"><code>git maintenance stop</code>  &ocy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&icy;&tcy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&ncy;&ycy;&iecy; &tcy;&acy;&jcy;&mcy;&iecy;&rcy;&ycy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy; &icy; &ucy;&dcy;&acy;&lcy;&icy;&tcy; &vcy;&ycy;&shcy;&iecy;&ucy;&pcy;&ocy;&mcy;&yacy;&ncy;&ucy;&tcy;&ycy;&iecy; &fcy;&acy;&jcy;&lcy;&ycy;.</span></p> <p><span data-i18n="356b9c02b5232b6fa63b12459f89fe08296dcfb383476709a09d45613e610ba5/0b" data-source="For more details, see &lt;code&gt;systemd.timer(5)&lt;/code&gt;." onmousemove="i18n(this)">&Pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&iecy;&iecy; &scy;&mcy;.  <code>systemd.timer(5)</code> .</span></p> </div> <h2 class="text-body-emphasis"  id="_background_maintenance_on_macos_systems"><span data-i18n="fc7eca1feab69559c516a0cd990a4db668314d579fab477e01e943da627bca74/2f" data-source="Background maintenance on macos systems" onmousemove="i18n(this)">&Fcy;&ocy;&ncy;&ocy;&vcy;&ocy;&iecy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&iecy; &scy;&icy;&scy;&tcy;&iecy;&mcy; MacOS</span></h2> <div> <p><span data-i18n="82a0a80bf72335331b7170f8c013168fe9e4fc266c49d637fa8acae97d6f9745/b9" data-source="While macOS technically supports &lt;code&gt;cron&lt;/code&gt;, using &lt;code&gt;crontab -e&lt;/code&gt; requires elevated privileges and the executed process does not have a full user context. Without a full user context, Git and its credential helpers cannot access stored credentials, so some maintenance tasks are not functional." onmousemove="i18n(this)">&KHcy;&ocy;&tcy;&yacy; macOS &tcy;&iecy;&khcy;&ncy;&icy;&chcy;&iecy;&scy;&kcy;&icy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&iecy;&tcy;  <code>cron</code> , &dcy;&lcy;&yacy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy;  <code>crontab -e</code>  &tcy;&rcy;&iecy;&bcy;&ucy;&yucy;&tcy;&scy;&yacy; &pcy;&ocy;&vcy;&ycy;&shcy;&iecy;&ncy;&ncy;&ycy;&iecy; &pcy;&rcy;&icy;&vcy;&icy;&lcy;&iecy;&gcy;&icy;&icy;, &icy; &icy;&scy;&pcy;&ocy;&lcy;&ncy;&yacy;&iecy;&mcy;&ycy;&jcy; &pcy;&rcy;&ocy;&tscy;&iecy;&scy;&scy; &ncy;&iecy; &icy;&mcy;&iecy;&iecy;&tcy; &pcy;&ocy;&lcy;&ncy;&ocy;&gcy;&ocy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&ocy;&gcy;&ocy; &kcy;&ocy;&ncy;&tcy;&iecy;&kcy;&scy;&tcy;&acy;. &Bcy;&iecy;&zcy; &pcy;&ocy;&lcy;&ncy;&ocy;&gcy;&ocy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&ocy;&gcy;&ocy; &kcy;&ocy;&ncy;&tcy;&iecy;&kcy;&scy;&tcy;&acy;  Git  &icy; &iecy;&gcy;&ocy; &pcy;&ocy;&mcy;&ocy;&shchcy;&ncy;&icy;&kcy;&icy; &pcy;&ocy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&mcy; &dcy;&acy;&ncy;&ncy;&ycy;&mcy; &ncy;&iecy; &mcy;&ocy;&gcy;&ucy;&tcy; &pcy;&ocy;&lcy;&ucy;&chcy;&icy;&tcy;&softcy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy; &kcy; &scy;&ocy;&khcy;&rcy;&acy;&ncy;&iecy;&ncy;&ncy;&ycy;&mcy; &ucy;&chcy;&iecy;&tcy;&ncy;&ycy;&mcy; &dcy;&acy;&ncy;&ncy;&ycy;&mcy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &ncy;&iecy; &rcy;&acy;&bcy;&ocy;&tcy;&acy;&yucy;&tcy;.</span></p> <p><span data-i18n="c3258a67791f040660e7c65f1f23c6df24db26734cd91cf87b4ffcfe2d0dd484/91" data-source="Instead, &lt;code&gt;git maintenance start&lt;/code&gt; interacts with the &lt;code&gt;launchctl&lt;/code&gt; tool, which is the recommended way to schedule timed jobs in macOS. Scheduling maintenance through &lt;code&gt;git maintenance (start|stop)&lt;/code&gt; requires some &lt;code&gt;launchctl&lt;/code&gt; features available only in macOS 10.11 or later." onmousemove="i18n(this)">&Vcy;&mcy;&iecy;&scy;&tcy;&ocy; &ecy;&tcy;&ocy;&gcy;&ocy;  <code>git maintenance start</code>  &vcy;&zcy;&acy;&icy;&mcy;&ocy;&dcy;&iecy;&jcy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &scy; &icy;&ncy;&scy;&tcy;&rcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ocy;&mcy;  <code>launchctl</code> , &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&jcy; &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &rcy;&iecy;&kcy;&ocy;&mcy;&iecy;&ncy;&dcy;&ucy;&iecy;&mcy;&ycy;&mcy; &scy;&pcy;&ocy;&scy;&ocy;&bcy;&ocy;&mcy; &pcy;&lcy;&acy;&ncy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &zcy;&acy;&dcy;&acy;&ncy;&icy;&jcy; &pcy;&ocy; &vcy;&rcy;&iecy;&mcy;&iecy;&ncy;&icy; &vcy; macOS. &Dcy;&lcy;&yacy; &pcy;&lcy;&acy;&ncy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &chcy;&iecy;&rcy;&iecy;&zcy;  <code>git maintenance (start|stop)</code>  &tcy;&rcy;&iecy;&bcy;&ucy;&yucy;&tcy;&scy;&yacy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &fcy;&ucy;&ncy;&kcy;&tscy;&icy;&icy;  <code>launchctl</code> , &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy;&iecy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &vcy; macOS 10.11 &icy;&lcy;&icy; &bcy;&ocy;&lcy;&iecy;&iecy; &pcy;&ocy;&zcy;&dcy;&ncy;&iecy;&jcy; &vcy;&iecy;&rcy;&scy;&icy;&icy;.</span></p> <p><span data-i18n="2b7153a4420827b80b22a0c749cdf386dc549721e6222f8cf06a74e8f7fc0ed0/7f" data-source="Your user-specific scheduled tasks are stored as XML-formatted &lt;code&gt;.plist&lt;/code&gt; files in &lt;code&gt;~/Library/LaunchAgents/&lt;/code&gt;. You can see the currently-registered tasks using the following command:" onmousemove="i18n(this)">&Zcy;&acy;&pcy;&lcy;&acy;&ncy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&iecy; &zcy;&acy;&dcy;&acy;&chcy;&icy;, &scy;&pcy;&iecy;&tscy;&icy;&fcy;&icy;&chcy;&ncy;&ycy;&iecy; &dcy;&lcy;&yacy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yacy;, &khcy;&rcy;&acy;&ncy;&yacy;&tcy;&scy;&yacy; &vcy; &vcy;&icy;&dcy;&iecy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;  <code>.plist</code>  &vcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy;&iecy; XML &vcy;  <code>~/Library/LaunchAgents/</code> . &Pcy;&ocy;&scy;&mcy;&ocy;&tcy;&rcy;&iecy;&tcy;&softcy; &zcy;&acy;&rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&ncy;&ycy;&iecy; &vcy; &dcy;&acy;&ncy;&ncy;&ycy;&jcy; &mcy;&ocy;&mcy;&iecy;&ncy;&tcy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &mcy;&ocy;&zhcy;&ncy;&ocy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&iecy;&jcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;:</span></p> <div> <div> <pre class="hljs language-shell"><span class="hljs-meta prompt_">$ </span><span class="language-bash"><span class="hljs-built_in">ls</span> ~/Library/LaunchAgents/org.git-scm.git*</span>
org.git-scm.git.daily.plist
org.git-scm.git.hourly.plist
org.git-scm.git.weekly.plist</pre> </div> </div> <p><span data-i18n="62168075a09a1a794bd718aa5dd731a1cc82d3852e0d1917487e856c3e9a3158/d9" data-source="One task is registered for each &lt;code&gt;--schedule=&amp;lt;frequency&amp;gt;&lt;/code&gt; option. To inspect how the XML format describes each schedule, open one of these &lt;code&gt;.plist&lt;/code&gt; files in an editor and inspect the &lt;code&gt;&amp;lt;array&amp;gt;&lt;/code&gt; element following the &lt;code&gt;&amp;lt;key&amp;gt;StartCalendarInterval&amp;lt;/key&amp;gt;&lt;/code&gt; element." onmousemove="i18n(this)">&Dcy;&lcy;&yacy; &kcy;&acy;&zhcy;&dcy;&ocy;&jcy; &ocy;&pcy;&tscy;&icy;&icy;  <code>--schedule=&lt;frequency&gt;</code>  &rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy; &ocy;&dcy;&ncy;&acy; &zcy;&acy;&dcy;&acy;&chcy;&acy;. &CHcy;&tcy;&ocy;&bcy;&ycy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&icy;&tcy;&softcy;, &kcy;&acy;&kcy; &fcy;&ocy;&rcy;&mcy;&acy;&tcy; XML &ocy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&iecy;&tcy; &kcy;&acy;&zhcy;&dcy;&ocy;&iecy; &rcy;&acy;&scy;&pcy;&icy;&scy;&acy;&ncy;&icy;&iecy;, &ocy;&tcy;&kcy;&rcy;&ocy;&jcy;&tcy;&iecy; &ocy;&dcy;&icy;&ncy; &icy;&zcy; &ecy;&tcy;&icy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;  <code>.plist</code>  &vcy; &rcy;&iecy;&dcy;&acy;&kcy;&tcy;&ocy;&rcy;&iecy; &icy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&softcy;&tcy;&iecy; &ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy;  <code>&lt;array&gt;</code> , &scy;&lcy;&iecy;&dcy;&ucy;&yucy;&shchcy;&icy;&jcy; &zcy;&acy; &ecy;&lcy;&iecy;&mcy;&iecy;&ncy;&tcy;&ocy;&mcy;  <code>&lt;key&gt;StartCalendarInterval&lt;/key&gt;</code> .</span></p> <p><span data-i18n="540d17fc80dfe4076f8e7436922383c4480342c56c110a2b8384a0acc6d3774e/7b" data-source="&lt;code&gt;git maintenance start&lt;/code&gt; will overwrite these files and register the tasks again with &lt;code&gt;launchctl&lt;/code&gt;, so any customizations should be done by creating your own &lt;code&gt;.plist&lt;/code&gt; files with distinct names. Similarly, the &lt;code&gt;git maintenance stop&lt;/code&gt; command will unregister the tasks with &lt;code&gt;launchctl&lt;/code&gt; and delete the &lt;code&gt;.plist&lt;/code&gt; files." onmousemove="i18n(this)"><code>git maintenance start</code>  &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&icy;&shcy;&iecy;&tcy; &ecy;&tcy;&icy; &fcy;&acy;&jcy;&lcy;&ycy; &icy; &scy;&ncy;&ocy;&vcy;&acy; &zcy;&acy;&rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&icy;&rcy;&ucy;&iecy;&tcy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &vcy;  <code>launchctl</code> , &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy; &lcy;&yucy;&bcy;&ycy;&iecy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&icy; &scy;&lcy;&iecy;&dcy;&ucy;&iecy;&tcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&tcy;&softcy; &pcy;&ucy;&tcy;&iecy;&mcy; &scy;&ocy;&zcy;&dcy;&acy;&ncy;&icy;&yacy; &scy;&ocy;&bcy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ycy;&khcy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy;  <code>.plist</code>  &scy; &rcy;&acy;&zcy;&ncy;&ycy;&mcy;&icy; &icy;&mcy;&iecy;&ncy;&acy;&mcy;&icy;. &Acy;&ncy;&acy;&lcy;&ocy;&gcy;&icy;&chcy;&ncy;&ycy;&mcy; &ocy;&bcy;&rcy;&acy;&zcy;&ocy;&mcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>git maintenance stop</code>  &ocy;&tcy;&mcy;&iecy;&ncy;&icy;&tcy; &rcy;&iecy;&gcy;&icy;&scy;&tcy;&rcy;&acy;&tscy;&icy;&yucy; &zcy;&acy;&dcy;&acy;&chcy; &vcy;  <code>launchctl</code>  &icy; &ucy;&dcy;&acy;&lcy;&icy;&tcy; &fcy;&acy;&jcy;&lcy;&ycy;  <code>.plist</code> .</span></p> <p><span data-i18n="20f645405a8d95e78156705210e9c4086aa5fe9323ad8dd7c1642f27ec25eafe/37" data-source="To create more advanced customizations to your background tasks, see launchctl.plist(5) for more information." onmousemove="i18n(this)">&CHcy;&tcy;&ocy;&bcy;&ycy; &scy;&ocy;&zcy;&dcy;&acy;&tcy;&softcy; &bcy;&ocy;&lcy;&iecy;&iecy; &scy;&lcy;&ocy;&zhcy;&ncy;&ycy;&iecy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&jcy;&kcy;&icy; &dcy;&lcy;&yacy; &vcy;&acy;&shcy;&icy;&khcy; &fcy;&ocy;&ncy;&ocy;&vcy;&ycy;&khcy; &zcy;&acy;&dcy;&acy;&chcy;, &scy;&mcy;. &dcy;&ocy;&pcy;&ocy;&lcy;&ncy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ucy;&yucy; &icy;&ncy;&fcy;&ocy;&rcy;&mcy;&acy;&tscy;&icy;&yucy; &vcy; &fcy;&acy;&jcy;&lcy;&iecy; launchctl.plist(5).</span></p> </div> <h2 class="text-body-emphasis"  id="_background_maintenance_on_windows_systems"><span data-i18n="033f4ffcd68b013579d468a9cb7a194e0860014d8809e44fbcc80be6b6a47321/e8" data-source="Background maintenance on windows systems" onmousemove="i18n(this)">&Fcy;&ocy;&ncy;&ocy;&vcy;&ocy;&iecy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&iecy; &scy;&icy;&scy;&tcy;&iecy;&mcy; Windows</span></h2> <div> <p><span data-i18n="6382662a3bcc47e8850b73bd9ebfbf1becb2d282a262d0b737ce57e557c23cf7/ee" data-source="Windows does not support &lt;code&gt;cron&lt;/code&gt; and instead has its own system for scheduling background tasks. The &lt;code&gt;git maintenance start&lt;/code&gt; command uses the &lt;code&gt;schtasks&lt;/code&gt; command to submit tasks to this system. You can inspect all background tasks using the Task Scheduler application. The tasks added by Git have names of the form &lt;code&gt;Git Maintenance (&amp;lt;frequency&amp;gt;)&lt;/code&gt;. The Task Scheduler GUI has ways to inspect these tasks, but you can also export the tasks to XML files and view the details there." onmousemove="i18n(this)">Windows &ncy;&iecy; &pcy;&ocy;&dcy;&dcy;&iecy;&rcy;&zhcy;&icy;&vcy;&acy;&iecy;&tcy;  <code>cron</code>  &icy; &vcy;&mcy;&iecy;&scy;&tcy;&ocy; &ecy;&tcy;&ocy;&gcy;&ocy; &icy;&mcy;&iecy;&iecy;&tcy; &scy;&ocy;&bcy;&scy;&tcy;&vcy;&iecy;&ncy;&ncy;&ucy;&yucy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&ucy; &pcy;&lcy;&acy;&ncy;&icy;&rcy;&ocy;&vcy;&acy;&ncy;&icy;&yacy; &fcy;&ocy;&ncy;&ocy;&vcy;&ycy;&khcy; &zcy;&acy;&dcy;&acy;&chcy;. &Kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy;  <code>git maintenance start</code>  &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ucy;  <code>schtasks</code>  &dcy;&lcy;&yacy; &ocy;&tcy;&pcy;&rcy;&acy;&vcy;&kcy;&icy; &zcy;&acy;&dcy;&acy;&chcy; &vcy; &ecy;&tcy;&ucy; &scy;&icy;&scy;&tcy;&iecy;&mcy;&ucy;. &Vcy;&ycy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&icy;&tcy;&softcy; &vcy;&scy;&iecy; &fcy;&ocy;&ncy;&ocy;&vcy;&ycy;&iecy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &scy; &pcy;&ocy;&mcy;&ocy;&shchcy;&softcy;&yucy; &pcy;&rcy;&icy;&lcy;&ocy;&zhcy;&iecy;&ncy;&icy;&yacy; &laquo;&Pcy;&lcy;&acy;&ncy;&icy;&rcy;&ocy;&vcy;&shchcy;&icy;&kcy; &zcy;&acy;&dcy;&acy;&ncy;&icy;&jcy;&raquo;. &Zcy;&acy;&dcy;&acy;&chcy;&icy;, &dcy;&ocy;&bcy;&acy;&vcy;&lcy;&yacy;&iecy;&mcy;&ycy;&iecy;  Git , &icy;&mcy;&iecy;&yucy;&tcy; &icy;&mcy;&iecy;&ncy;&acy; &vcy;&icy;&dcy;&acy;  <code>Git Maintenance (&lt;frequency&gt;)</code> . &Vcy; &gcy;&rcy;&acy;&fcy;&icy;&chcy;&iecy;&scy;&kcy;&ocy;&mcy; &icy;&ncy;&tcy;&iecy;&rcy;&fcy;&iecy;&jcy;&scy;&iecy; &pcy;&lcy;&acy;&ncy;&icy;&rcy;&ocy;&vcy;&shchcy;&icy;&kcy;&acy; &zcy;&acy;&dcy;&acy;&chcy; &iecy;&scy;&tcy;&softcy; &scy;&pcy;&ocy;&scy;&ocy;&bcy;&ycy; &pcy;&rcy;&ocy;&vcy;&iecy;&rcy;&kcy;&icy; &ecy;&tcy;&icy;&khcy; &zcy;&acy;&dcy;&acy;&chcy;, &ncy;&ocy; &vcy;&ycy; &tcy;&acy;&kcy;&zhcy;&iecy; &mcy;&ocy;&zhcy;&iecy;&tcy;&iecy; &ecy;&kcy;&scy;&pcy;&ocy;&rcy;&tcy;&icy;&rcy;&ocy;&vcy;&acy;&tcy;&softcy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &vcy; &fcy;&acy;&jcy;&lcy;&ycy; XML &icy; &pcy;&rcy;&ocy;&scy;&mcy;&acy;&tcy;&rcy;&icy;&vcy;&acy;&tcy;&softcy; &pcy;&ocy;&dcy;&rcy;&ocy;&bcy;&ncy;&ocy;&scy;&tcy;&icy; &tcy;&acy;&mcy;.</span></p> <p><span data-i18n="3fa0e13ebe77927cde8ae6dfc8a436f5a7dcbb51f0ab3618e06c78bc134be046/12" data-source="Note that since Git is a console application, these background tasks create a console window visible to the current user. This can be changed manually by selecting the &amp;quot;Run whether user is logged in or not&amp;quot; option in Task Scheduler. This change requires a password input, which is why &lt;code&gt;git maintenance start&lt;/code&gt; does not select it by default." onmousemove="i18n(this)">&Ocy;&bcy;&rcy;&acy;&tcy;&icy;&tcy;&iecy; &vcy;&ncy;&icy;&mcy;&acy;&ncy;&icy;&iecy;: &pcy;&ocy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&ucy;  Git  &yacy;&vcy;&lcy;&yacy;&iecy;&tcy;&scy;&yacy; &kcy;&ocy;&ncy;&scy;&ocy;&lcy;&softcy;&ncy;&ycy;&mcy; &pcy;&rcy;&icy;&lcy;&ocy;&zhcy;&iecy;&ncy;&icy;&iecy;&mcy;, &ecy;&tcy;&icy; &fcy;&ocy;&ncy;&ocy;&vcy;&ycy;&iecy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &scy;&ocy;&zcy;&dcy;&acy;&yucy;&tcy; &ocy;&kcy;&ncy;&ocy; &kcy;&ocy;&ncy;&scy;&ocy;&lcy;&icy;, &vcy;&icy;&dcy;&icy;&mcy;&ocy;&iecy; &tcy;&iecy;&kcy;&ucy;&shchcy;&iecy;&mcy;&ucy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&yucy;. &Ecy;&tcy;&ocy; &mcy;&ocy;&zhcy;&ncy;&ocy; &icy;&zcy;&mcy;&iecy;&ncy;&icy;&tcy;&softcy; &vcy;&rcy;&ucy;&chcy;&ncy;&ucy;&yucy;, &vcy;&ycy;&bcy;&rcy;&acy;&vcy; &ocy;&pcy;&tscy;&icy;&yucy;  &quot;Run whether user is logged in or not&quot;  &vcy; &pcy;&lcy;&acy;&ncy;&icy;&rcy;&ocy;&vcy;&shchcy;&icy;&kcy;&iecy; &zcy;&acy;&dcy;&acy;&chcy;. &Ecy;&tcy;&ocy; &icy;&zcy;&mcy;&iecy;&ncy;&iecy;&ncy;&icy;&iecy; &tcy;&rcy;&iecy;&bcy;&ucy;&iecy;&tcy; &vcy;&vcy;&ocy;&dcy;&acy; &pcy;&acy;&rcy;&ocy;&lcy;&yacy;, &pcy;&ocy;&ecy;&tcy;&ocy;&mcy;&ucy;  <code>git maintenance start</code>  &ncy;&iecy; &vcy;&ycy;&bcy;&icy;&rcy;&acy;&iecy;&tcy; &iecy;&gcy;&ocy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy;.</span></p> <p><span data-i18n="874749e7503fad5c5c70ed07041a1b2d2ab52ec7a6d322143e4f25d02a8fccf6/a5" data-source="If you want to customize the background tasks, please rename the tasks so future calls to &lt;code&gt;git maintenance (start|stop)&lt;/code&gt; do not overwrite your custom tasks." onmousemove="i18n(this)">&IEcy;&scy;&lcy;&icy; &vcy;&ycy; &khcy;&ocy;&tcy;&icy;&tcy;&iecy; &ncy;&acy;&scy;&tcy;&rcy;&ocy;&icy;&tcy;&softcy; &fcy;&ocy;&ncy;&ocy;&vcy;&ycy;&iecy; &zcy;&acy;&dcy;&acy;&chcy;&icy;, &pcy;&iecy;&rcy;&iecy;&icy;&mcy;&iecy;&ncy;&ucy;&jcy;&tcy;&iecy; &icy;&khcy;, &chcy;&tcy;&ocy;&bcy;&ycy; &bcy;&ucy;&dcy;&ucy;&shchcy;&icy;&iecy; &vcy;&ycy;&zcy;&ocy;&vcy;&ycy;  <code>git maintenance (start|stop)</code>  &ncy;&iecy; &pcy;&iecy;&rcy;&iecy;&zcy;&acy;&pcy;&icy;&scy;&ycy;&vcy;&acy;&lcy;&icy; &vcy;&acy;&shcy;&icy; &pcy;&ocy;&lcy;&softcy;&zcy;&ocy;&vcy;&acy;&tcy;&iecy;&lcy;&softcy;&scy;&kcy;&icy;&iecy; &zcy;&acy;&dcy;&acy;&chcy;&icy;.</span></p> </div> <h2 class="text-body-emphasis"  id="_configuration"><span data-i18n="b332c3492d5eb10a118eb6d8b0dcd689bc2477ce2ae16b303753b942b54377bc/aa" data-source="Configuration" onmousemove="i18n(this)">Configuration</span></h2> <div> <p><span data-i18n="5b8d919fa35b75aa925ebd5414ed6373e762fb0a087a062961c27b2ce9586555/57" data-source="Everything below this line in this section is selectively included from the &lt;a href=&quot;git-config&quot;&gt;git-config[1]&lt;/a&gt; documentation. The content is the same as what&amp;rsquo;s found there:" onmousemove="i18n(this)">&Vcy;&scy;&iecy;, &chcy;&tcy;&ocy; &ncy;&acy;&khcy;&ocy;&dcy;&icy;&tcy;&scy;&yacy; &ncy;&icy;&zhcy;&iecy; &ecy;&tcy;&ocy;&jcy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &vcy; &ecy;&tcy;&ocy;&mcy; &rcy;&acy;&zcy;&dcy;&iecy;&lcy;&iecy;, &vcy;&ycy;&bcy;&ocy;&rcy;&ocy;&chcy;&ncy;&ocy; &vcy;&kcy;&lcy;&yucy;&chcy;&iecy;&ncy;&ocy; &icy;&zcy; &dcy;&ocy;&kcy;&ucy;&mcy;&iecy;&ncy;&tcy;&acy;&tscy;&icy;&icy;  <a href="git-config.html">git-config[1]</a> . &Scy;&ocy;&dcy;&iecy;&rcy;&zhcy;&acy;&ncy;&icy;&iecy; &tcy;&acy;&kcy;&ocy;&iecy; &zhcy;&iecy;, &kcy;&acy;&kcy; &icy; &ncy;&acy;&jcy;&dcy;&iecy;&ncy;&ncy;&ocy;&iecy; &tcy;&acy;&mcy;:</span></p> <div> <dl> <dt id="Documentation/git-maintenance.txt-maintenanceauto"><span data-i18n="12d873fe848e0510662e450c7ca56b3a3bd447a2699130064acb56f2cfd4b8d0/0d" data-source="maintenance.auto" onmousemove="i18n(this)">maintenance.auto</span></dt> <dd> <p><span data-i18n="6569f77fdab7b02ccc2c7629618ee38c00405c8b805efd01e6bae8ab91b019a7/91" data-source="This boolean config option controls whether some commands run &lt;code&gt;git maintenance run --auto&lt;/code&gt; after doing their normal work. Defaults to true." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  boolean  &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy;, &bcy;&ucy;&dcy;&ucy;&tcy; &lcy;&icy; &ncy;&iecy;&kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&iecy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&tcy;&softcy;  <code>git maintenance run --auto</code>  &pcy;&ocy;&scy;&lcy;&iecy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&yacy; &scy;&vcy;&ocy;&iecy;&jcy; &ocy;&bcy;&ycy;&chcy;&ncy;&ocy;&jcy; &rcy;&acy;&bcy;&ocy;&tcy;&ycy;. &Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &icy;&scy;&tcy;&icy;&ncy;&ncy;&ocy;.</span></p> </dd> <dt id="Documentation/git-maintenance.txt-maintenancestrategy"><span data-i18n="87ede8bba5fddf6ed36bd8fe7494fbc51558c387955a7e97df53e21ab59e2905/f7" data-source="maintenance.strategy" onmousemove="i18n(this)">maintenance.strategy</span></dt> <dd> <p><span data-i18n="f8237505aa2860e65d9f101412a9778ed7e079ed09219b5bb696d3b26b07654a/1c" data-source="This string config option provides a way to specify one of a few recommended schedules for background maintenance. This only affects which tasks are run during &lt;code&gt;git maintenance run --schedule=X&lt;/code&gt; commands, provided no &lt;code&gt;--task=&amp;lt;task&amp;gt;&lt;/code&gt; arguments are provided. Further, if a &lt;code&gt;maintenance.&amp;lt;task&amp;gt;.schedule&lt;/code&gt; config value is set, then that value is used instead of the one provided by &lt;code&gt;maintenance.strategy&lt;/code&gt;. The possible strategy strings are:" onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &pcy;&ocy;&zcy;&vcy;&ocy;&lcy;&yacy;&iecy;&tcy; &ucy;&kcy;&acy;&zcy;&acy;&tcy;&softcy; &ocy;&dcy;&ncy;&ocy; &icy;&zcy; &ncy;&iecy;&scy;&kcy;&ocy;&lcy;&softcy;&kcy;&icy;&khcy; &rcy;&iecy;&kcy;&ocy;&mcy;&iecy;&ncy;&dcy;&ucy;&iecy;&mcy;&ycy;&khcy; &rcy;&acy;&scy;&pcy;&icy;&scy;&acy;&ncy;&icy;&jcy; &fcy;&ocy;&ncy;&ocy;&vcy;&ocy;&gcy;&ocy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy;. &Ecy;&tcy;&ocy; &vcy;&lcy;&icy;&yacy;&iecy;&tcy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy; &ncy;&acy; &tcy;&ocy;, &kcy;&acy;&kcy;&icy;&iecy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy; &vcy;&ocy; &vcy;&rcy;&iecy;&mcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;  <code>git maintenance run --schedule=X</code> , &pcy;&rcy;&icy; &ucy;&scy;&lcy;&ocy;&vcy;&icy;&icy;, &chcy;&tcy;&ocy; &acy;&rcy;&gcy;&ucy;&mcy;&iecy;&ncy;&tcy;&ycy;  <code>--task=&lt;task&gt;</code>  &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy;&ycy;. &Kcy;&rcy;&ocy;&mcy;&iecy; &tcy;&ocy;&gcy;&ocy;, &iecy;&scy;&lcy;&icy; &ucy;&scy;&tcy;&acy;&ncy;&ocy;&vcy;&lcy;&iecy;&ncy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  <code>maintenance.&lt;task&gt;.schedule</code> , &tcy;&ocy; &ecy;&tcy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &icy;&scy;&pcy;&ocy;&lcy;&softcy;&zcy;&ucy;&iecy;&tcy;&scy;&yacy; &vcy;&mcy;&iecy;&scy;&tcy;&ocy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy;, &pcy;&rcy;&iecy;&dcy;&ocy;&scy;&tcy;&acy;&vcy;&lcy;&iecy;&ncy;&ncy;&ocy;&gcy;&ocy;  <code>maintenance.strategy</code> . &Vcy;&ocy;&zcy;&mcy;&ocy;&zhcy;&ncy;&ycy;&iecy; &scy;&tcy;&rcy;&ocy;&kcy;&icy; &scy;&tcy;&rcy;&acy;&tcy;&iecy;&gcy;&icy;&icy;:</span></p> <div> <ul> <li> <p><span data-i18n="daad3cadbab80eec268278684212e0809c14e22af5a602be2a1b358d87c4103f/4e" data-source="&lt;code&gt;none&lt;/code&gt;: This default setting implies no tasks are run at any schedule." onmousemove="i18n(this)"><code>none</code> : &ecy;&tcy;&ocy;&tcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &pcy;&ocy;&dcy;&rcy;&acy;&zcy;&ucy;&mcy;&iecy;&vcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &ncy;&icy;&kcy;&acy;&kcy;&icy;&iecy; &zcy;&acy;&dcy;&acy;&chcy;&icy; &ncy;&iecy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy; &ncy;&icy; &pcy;&ocy; &ocy;&dcy;&ncy;&ocy;&mcy;&ucy; &rcy;&acy;&scy;&pcy;&icy;&scy;&acy;&ncy;&icy;&yucy;.</span></p> </li> <li> <p><span data-i18n="97009f5477a4f287fc4a3c3a7165ec37080dd417ff5548e349ad71ca62ec9cfc/12" data-source="&lt;code&gt;incremental&lt;/code&gt;: This setting optimizes for performing small maintenance activities that do not delete any data. This does not schedule the &lt;code&gt;gc&lt;/code&gt; task, but runs the &lt;code&gt;prefetch&lt;/code&gt; and &lt;code&gt;commit-graph&lt;/code&gt; tasks hourly, the &lt;code&gt;loose-objects&lt;/code&gt; and &lt;code&gt;incremental-repack&lt;/code&gt; tasks daily, and the &lt;code&gt;pack-refs&lt;/code&gt; task weekly." onmousemove="i18n(this)"><code>incremental</code> : &ecy;&tcy;&ocy;&tcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &ocy;&pcy;&tcy;&icy;&mcy;&icy;&zcy;&icy;&rcy;&ucy;&iecy;&tcy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&iecy;&ncy;&icy;&iecy; &ncy;&iecy;&bcy;&ocy;&lcy;&softcy;&shcy;&icy;&khcy; &dcy;&iecy;&jcy;&scy;&tcy;&vcy;&icy;&jcy; &pcy;&ocy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yucy;, &ncy;&iecy; &pcy;&rcy;&icy;&vcy;&ocy;&dcy;&yacy;&shchcy;&icy;&khcy; &kcy; &ucy;&dcy;&acy;&lcy;&iecy;&ncy;&icy;&yucy; &dcy;&acy;&ncy;&ncy;&ycy;&khcy;. &Pcy;&rcy;&icy; &ecy;&tcy;&ocy;&mcy; &zcy;&acy;&dcy;&acy;&chcy;&acy;  <code>gc</code>  &ncy;&iecy; &pcy;&lcy;&acy;&ncy;&icy;&rcy;&ucy;&iecy;&tcy;&scy;&yacy;, &acy; &zcy;&acy;&dcy;&acy;&chcy;&icy;  <code>prefetch</code>  &icy;  <code>commit-graph</code>  &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&yucy;&tcy;&scy;&yacy; &iecy;&zhcy;&iecy;&chcy;&acy;&scy;&ncy;&ocy;, &zcy;&acy;&dcy;&acy;&chcy;&icy;  <code>loose-objects</code>  &icy;  <code>incremental-repack</code>  &mdash; &iecy;&zhcy;&iecy;&dcy;&ncy;&iecy;&vcy;&ncy;&ocy;, &acy; &zcy;&acy;&dcy;&acy;&chcy;&acy;  <code>pack-refs</code>  &mdash; &iecy;&zhcy;&iecy;&ncy;&iecy;&dcy;&iecy;&lcy;&softcy;&ncy;&ocy;.</span></p> </li> </ul> </div> </dd> <dt id="Documentation/git-maintenance.txt-maintenancelttaskgtenabled"><span data-i18n="58c867804d4c909fb43e110b0b494ea3096f8f2b3ed8310690e0199916bf47fc/ba" data-source="maintenance.&amp;lt;task&amp;gt;.enabled" onmousemove="i18n(this)">maintenance.&lt;task&gt;.enabled</span></dt> <dd> <p><span data-i18n="4d0661c353c948766c47b8a03fa077acdbc3e90b5e171b2c09d713a2b14f6daa/9d" data-source="This boolean config option controls whether the maintenance task with name &lt;code&gt;&amp;lt;task&amp;gt;&lt;/code&gt; is run when no &lt;code&gt;--task&lt;/code&gt; option is specified to &lt;code&gt;git maintenance run&lt;/code&gt;. These config values are ignored if a &lt;code&gt;--task&lt;/code&gt; option exists. By default, only &lt;code&gt;maintenance.gc.enabled&lt;/code&gt; is true." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy;  boolean  &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy;, &bcy;&ucy;&dcy;&iecy;&tcy; &lcy;&icy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&tcy;&softcy;&scy;&yacy; &zcy;&acy;&dcy;&acy;&chcy;&acy; &ocy;&bcy;&scy;&lcy;&ucy;&zhcy;&icy;&vcy;&acy;&ncy;&icy;&yacy; &scy; &icy;&mcy;&iecy;&ncy;&iecy;&mcy;  <code>&lt;task&gt;</code> , &iecy;&scy;&lcy;&icy; &dcy;&lcy;&yacy;  <code>git maintenance run</code>  &ncy;&iecy; &ucy;&kcy;&acy;&zcy;&acy;&ncy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy;  <code>--task</code> . &Ecy;&tcy;&icy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &icy;&gcy;&ncy;&ocy;&rcy;&icy;&rcy;&ucy;&yucy;&tcy;&scy;&yacy;, &iecy;&scy;&lcy;&icy; &scy;&ucy;&shchcy;&iecy;&scy;&tcy;&vcy;&ucy;&iecy;&tcy; &ocy;&pcy;&tscy;&icy;&yacy;  <code>--task</code> . &Pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &vcy;&iecy;&rcy;&iecy;&ncy; &tcy;&ocy;&lcy;&softcy;&kcy;&ocy;  <code>maintenance.gc.enabled</code> .</span></p> </dd> <dt id="Documentation/git-maintenance.txt-maintenancelttaskgtschedule"><span data-i18n="6537a662c50325473eab63e1b2ada916b99b0fb6bd2415db9f719ee97f34a6f9/4c" data-source="maintenance.&amp;lt;task&amp;gt;.schedule" onmousemove="i18n(this)">maintenance.&lt;task&gt;.schedule</span></dt> <dd> <p><span data-i18n="21184b199c91fe339685275f488e155a5f5622c224dde23325273649820d6b79/d4" data-source="This config option controls whether or not the given &lt;code&gt;&amp;lt;task&amp;gt;&lt;/code&gt; runs during a &lt;code&gt;git maintenance run --schedule=&amp;lt;frequency&amp;gt;&lt;/code&gt; command. The value must be one of &amp;quot;hourly&amp;quot;, &amp;quot;daily&amp;quot;, or &amp;quot;weekly&amp;quot;." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy;, &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&iecy;&tcy;&scy;&yacy; &lcy;&icy; &dcy;&acy;&ncy;&ncy;&ycy;&jcy;  <code>&lt;task&gt;</code>  &vcy;&ocy; &vcy;&rcy;&iecy;&mcy;&yacy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&ycy;  <code>git maintenance run --schedule=&lt;frequency&gt;</code> . &Zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &dcy;&ocy;&lcy;&zhcy;&ncy;&ocy; &bcy;&ycy;&tcy;&softcy; &ocy;&dcy;&ncy;&icy;&mcy; &icy;&zcy;  &quot;hourly&quot; ,  &quot;daily&quot;  &icy;&lcy;&icy;  &quot;weekly&quot; .</span></p> </dd> <dt id="Documentation/git-maintenance.txt-maintenancecommit-graphauto"><span data-i18n="53a45848e994d7a0c30e228752ed57478a56bba34048cbdb4d80410f54be4e54/55" data-source="maintenance.commit-graph.auto" onmousemove="i18n(this)">maintenance.commit-graph.auto</span></dt> <dd> <p><span data-i18n="cea9c0a766193e8a75e67ac366512645ebd71866495dd73e57c42b09cb8dce32/11" data-source="This integer config option controls how often the &lt;code&gt;commit-graph&lt;/code&gt; task should be run as part of &lt;code&gt;git maintenance run --auto&lt;/code&gt;. If zero, then the &lt;code&gt;commit-graph&lt;/code&gt; task will not run with the &lt;code&gt;--auto&lt;/code&gt; option. A negative value will force the task to run every time. Otherwise, a positive value implies the command should run when the number of reachable commits that are not in the commit-graph file is at least the value of &lt;code&gt;maintenance.commit-graph.auto&lt;/code&gt;. The default value is 100." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &tscy;&iecy;&lcy;&ocy;&chcy;&icy;&scy;&lcy;&iecy;&ncy;&ncy;&ycy;&jcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy;, &kcy;&acy;&kcy; &chcy;&acy;&scy;&tcy;&ocy; &zcy;&acy;&dcy;&acy;&chcy;&acy;  <code>commit-graph</code>  &dcy;&ocy;&lcy;&zhcy;&ncy;&acy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&tcy;&softcy;&scy;&yacy; &kcy;&acy;&kcy; &chcy;&acy;&scy;&tcy;&softcy;  <code>git maintenance run --auto</code> . &IEcy;&scy;&lcy;&icy; &ncy;&ocy;&lcy;&softcy;, &tcy;&ocy; &zcy;&acy;&dcy;&acy;&chcy;&acy;  <code>commit-graph</code>  &ncy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&tcy;&softcy;&scy;&yacy; &scy; &ocy;&pcy;&tscy;&icy;&iecy;&jcy;  <code>--auto</code> . &Ocy;&tcy;&rcy;&icy;&tscy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &zcy;&acy;&scy;&tcy;&acy;&vcy;&icy;&tcy; &zcy;&acy;&dcy;&acy;&chcy;&ucy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&tcy;&softcy;&scy;&yacy; &kcy;&acy;&zhcy;&dcy;&ycy;&jcy; &rcy;&acy;&zcy;. &Vcy; &pcy;&rcy;&ocy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &pcy;&ocy;&lcy;&ocy;&zhcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &dcy;&ocy;&lcy;&zhcy;&ncy;&acy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&tcy;&softcy;&scy;&yacy;, &kcy;&ocy;&gcy;&dcy;&acy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &dcy;&ocy;&scy;&tcy;&ucy;&pcy;&ncy;&ycy;&khcy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;, &kcy;&ocy;&tcy;&ocy;&rcy;&ycy;&khcy; &ncy;&iecy;&tcy; &vcy; &fcy;&acy;&jcy;&lcy;&iecy; &gcy;&rcy;&acy;&fcy;&acy; &kcy;&ocy;&mcy;&mcy;&icy;&tcy;&ocy;&vcy;, &rcy;&acy;&vcy;&ncy;&ocy; &kcy;&acy;&kcy; &mcy;&icy;&ncy;&icy;&mcy;&ucy;&mcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yucy;  <code>maintenance.commit-graph.auto</code>  . &Zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &mdash; 100.</span></p> </dd> <dt id="Documentation/git-maintenance.txt-maintenanceloose-objectsauto"><span data-i18n="82f5eb783ae52b3f45f906101ff8a4ffa69cca09b6ebd13c9a30904bc738abfe/3e" data-source="maintenance.loose-objects.auto" onmousemove="i18n(this)">maintenance.loose-objects.auto</span></dt> <dd> <p><span data-i18n="d85ff9265589652daa4a556d4de2e187cc1573956a8c5869db59a43ffc8f1d9a/30" data-source="This integer config option controls how often the &lt;code&gt;loose-objects&lt;/code&gt; task should be run as part of &lt;code&gt;git maintenance run --auto&lt;/code&gt;. If zero, then the &lt;code&gt;loose-objects&lt;/code&gt; task will not run with the &lt;code&gt;--auto&lt;/code&gt; option. A negative value will force the task to run every time. Otherwise, a positive value implies the command should run when the number of loose objects is at least the value of &lt;code&gt;maintenance.loose-objects.auto&lt;/code&gt;. The default value is 100." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &tscy;&iecy;&lcy;&ocy;&chcy;&icy;&scy;&lcy;&iecy;&ncy;&ncy;&ycy;&jcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy;, &kcy;&acy;&kcy; &chcy;&acy;&scy;&tcy;&ocy; &zcy;&acy;&dcy;&acy;&chcy;&acy;  <code>loose-objects</code>  &dcy;&ocy;&lcy;&zhcy;&ncy;&acy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&tcy;&softcy;&scy;&yacy; &kcy;&acy;&kcy; &chcy;&acy;&scy;&tcy;&softcy;  <code>git maintenance run --auto</code> . &IEcy;&scy;&lcy;&icy; &ncy;&ocy;&lcy;&softcy;, &tcy;&ocy; &zcy;&acy;&dcy;&acy;&chcy;&acy;  <code>loose-objects</code>  &ncy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&tcy;&softcy;&scy;&yacy; &scy; &ocy;&pcy;&tscy;&icy;&iecy;&jcy;  <code>--auto</code> . &Ocy;&tcy;&rcy;&icy;&tscy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &zcy;&acy;&scy;&tcy;&acy;&vcy;&icy;&tcy; &zcy;&acy;&dcy;&acy;&chcy;&ucy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&tcy;&softcy;&scy;&yacy; &kcy;&acy;&zhcy;&dcy;&ycy;&jcy; &rcy;&acy;&zcy;. &Vcy; &pcy;&rcy;&ocy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &pcy;&ocy;&lcy;&ocy;&zhcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &dcy;&ocy;&lcy;&zhcy;&ncy;&acy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&tcy;&softcy;&scy;&yacy;, &kcy;&ocy;&gcy;&dcy;&acy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &ncy;&iecy;&zcy;&acy;&kcy;&rcy;&iecy;&pcy;&lcy;&iecy;&ncy;&ncy;&ycy;&khcy; &ocy;&bcy;&hardcy;&iecy;&kcy;&tcy;&ocy;&vcy; &ncy;&iecy; &pcy;&rcy;&iecy;&vcy;&ycy;&shcy;&acy;&iecy;&tcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yacy;  <code>maintenance.loose-objects.auto</code> . &Zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &mdash; 100.</span></p> </dd> <dt id="Documentation/git-maintenance.txt-maintenanceincremental-repackauto"><span data-i18n="97286b4503c4aa404257ed45f6bbfa7397f2f12dbd03b5315833d048b41d35b5/48" data-source="maintenance.incremental-repack.auto" onmousemove="i18n(this)">maintenance.incremental-repack.auto</span></dt> <dd> <p><span data-i18n="487d1729c8fcd632f7b5d6b10c86fa6a84449102749cb8bb227532adff106de4/86" data-source="This integer config option controls how often the &lt;code&gt;incremental-repack&lt;/code&gt; task should be run as part of &lt;code&gt;git maintenance run --auto&lt;/code&gt;. If zero, then the &lt;code&gt;incremental-repack&lt;/code&gt; task will not run with the &lt;code&gt;--auto&lt;/code&gt; option. A negative value will force the task to run every time. Otherwise, a positive value implies the command should run when the number of pack-files not in the multi-pack-index is at least the value of &lt;code&gt;maintenance.incremental-repack.auto&lt;/code&gt;. The default value is 10." onmousemove="i18n(this)">&Ecy;&tcy;&ocy;&tcy; &tscy;&iecy;&lcy;&ocy;&chcy;&icy;&scy;&lcy;&iecy;&ncy;&ncy;&ycy;&jcy; &pcy;&acy;&rcy;&acy;&mcy;&iecy;&tcy;&rcy; &kcy;&ocy;&ncy;&fcy;&icy;&gcy;&ucy;&rcy;&acy;&tscy;&icy;&icy; &ocy;&pcy;&rcy;&iecy;&dcy;&iecy;&lcy;&yacy;&iecy;&tcy;, &kcy;&acy;&kcy; &chcy;&acy;&scy;&tcy;&ocy; &zcy;&acy;&dcy;&acy;&chcy;&acy;  <code>incremental-repack</code>  &dcy;&ocy;&lcy;&zhcy;&ncy;&acy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&tcy;&softcy;&scy;&yacy; &kcy;&acy;&kcy; &chcy;&acy;&scy;&tcy;&softcy;  <code>git maintenance run --auto</code> . &IEcy;&scy;&lcy;&icy; &ncy;&ocy;&lcy;&softcy;, &tcy;&ocy; &zcy;&acy;&dcy;&acy;&chcy;&acy;  <code>incremental-repack</code>  &ncy;&iecy; &bcy;&ucy;&dcy;&iecy;&tcy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&tcy;&softcy;&scy;&yacy; &scy; &ocy;&pcy;&tscy;&icy;&iecy;&jcy;  <code>--auto</code> . &Ocy;&tcy;&rcy;&icy;&tscy;&acy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &zcy;&acy;&scy;&tcy;&acy;&vcy;&icy;&tcy; &zcy;&acy;&dcy;&acy;&chcy;&ucy; &zcy;&acy;&pcy;&ucy;&scy;&kcy;&acy;&tcy;&softcy;&scy;&yacy; &kcy;&acy;&zhcy;&dcy;&ycy;&jcy; &rcy;&acy;&zcy;. &Vcy; &pcy;&rcy;&ocy;&tcy;&icy;&vcy;&ncy;&ocy;&mcy; &scy;&lcy;&ucy;&chcy;&acy;&iecy; &pcy;&ocy;&lcy;&ocy;&zhcy;&icy;&tcy;&iecy;&lcy;&softcy;&ncy;&ocy;&iecy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &ocy;&zcy;&ncy;&acy;&chcy;&acy;&iecy;&tcy;, &chcy;&tcy;&ocy; &kcy;&ocy;&mcy;&acy;&ncy;&dcy;&acy; &dcy;&ocy;&lcy;&zhcy;&ncy;&acy; &vcy;&ycy;&pcy;&ocy;&lcy;&ncy;&yacy;&tcy;&softcy;&scy;&yacy;, &kcy;&ocy;&gcy;&dcy;&acy; &kcy;&ocy;&lcy;&icy;&chcy;&iecy;&scy;&tcy;&vcy;&ocy; &fcy;&acy;&jcy;&lcy;&ocy;&vcy; &pcy;&acy;&kcy;&iecy;&tcy;&acy;, &ncy;&iecy; &vcy;&khcy;&ocy;&dcy;&yacy;&shchcy;&icy;&khcy; &vcy; &icy;&ncy;&dcy;&iecy;&kcy;&scy; &mcy;&ucy;&lcy;&softcy;&tcy;&icy;&pcy;&acy;&kcy;&iecy;&tcy;&acy;, &rcy;&acy;&vcy;&ncy;&ocy; &kcy;&acy;&kcy; &mcy;&icy;&ncy;&icy;&mcy;&ucy;&mcy; &zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&yucy;  <code>maintenance.incremental-repack.auto</code>  . &Zcy;&ncy;&acy;&chcy;&iecy;&ncy;&icy;&iecy; &pcy;&ocy; &ucy;&mcy;&ocy;&lcy;&chcy;&acy;&ncy;&icy;&yucy; &mdash; 10.</span></p> </dd> </dl> </div> </div><address>
<p>
    &copy; 2012&ndash;2024 Scott Chacon and others<br/>Licensed under the MIT License.<br/>
<a href="https://git-scm.com/docs/git-maintenance">https://git-scm.com/docs/git-maintenance</a>
</p>
</address>                </article>
            </main>

            <br>
            <br>
            <hr>

                               <ins class="adsbygoogle"
        style="display:block"
        data-ad-format="autorelaxed"
        data-ad-client="ca-pub-6424571640879890"
        data-ad-slot="7867651344"></ins>
   <script data-cfasync="false" src="../../../cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script>
        (adsbygoogle = window.adsbygoogle || []).push({});
   </script>            
        </div>

        <!-- -->

        <div class="col-md-3">
            <br>
            <form action="-index-.html">
                <div class="input-group">
                    <input class="form-control" type="search" name="q" placeholder="Search for Git" required>
                    <button class="btn btn-primary" type="submit">
                        <i class="bi bi-search"></i>
                    </button>
                </div>
            </form>
            <br>

                            <div class="list-group list-group-flush">
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-merge.html">
                            git merge                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-merge-base.html">
                            git merge-base                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-merge-file.html">
                            git merge-file                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-merge-index.html">
                            git merge-index                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-merge-one-file.html">
                            git merge-one-file                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-merge-tree.html">
                            git merge-tree                        </a>
                                            <a class="list-group-item list-group-item-action text-primary-emphasis px-2 text-truncate" href="git-mergetool.html">
                            git mergetool                        </a>
                                    </div>
            
            <br>
            <div class="my-3">
                <ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-6424571640879890"
     data-ad-slot="3954319254"
     data-ad-format="auto"
     data-full-width-responsive="true"></ins>
<script>
     (adsbygoogle = window.adsbygoogle || []).push({});
</script>            </div>
            <br>

            
            
        </div>
    </div>
</div>    <!--/sse-->

    <footer>
        <br>
        <div class="container">
            <div class="row">
                <div class="col">
                    <hr>
                    <div class="row">
                        <div class="col-md-10">
                            <ul class="nav">
                                <li class="nav-item">
                                    <a class="nav-link ps-0" href="https://runebook.dev/">Help us Improve Translation</a>
                                </li>
                                                            </ul>
                        </div>
                        <div class="col-md-2 text-end">
                            <a href="git-maintenance.html#" class="fs-5" aria-label="Top">
                                <i class="bi bi-arrow-up-square-fill"></i>
                            </a>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <br>
    </footer>
    <script src="../../../runebook.js"></script>
</body>

</html>